Currently, working with the latest npm version on a Mac, I've come across an unusual issue. When attempting to install a package locally in a specific folder, I find myself having to npm init
it first. Strangely, if I just run npm install [package name]
, the package gets installed globally in my /User/npm-modules folder instead of locally. This means that I have to initialize the folder to install the package locally, which is the opposite of what should normally happen. Any thoughts on why this might be occurring?