updating package json with info, dependencies, and prefer global setting