0

I am new to npm, using package.json to define the dependencies. I am just curious where is those dependencies installed from?

1 Answer 1

1

First, npm checks your local machine for packages installed globally, or using the -g flag.

ie: if you used npm install -g moduleName

You can run npm list -g to figure out where that is on your machine. Otherwise, npm goes to where you set the npm registry. By default this is npmjs.

If you want to see the default settings, run npm config list

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.