Node js adding unwanted modules when I do npm install [duplicate]
问题 This question already has answers here : NPM installs dependencies in a wrong place (2 answers) Closed 4 years ago . I am trying to spin up a node service on my mac. When I run npm install in the folder where my node service is, it is installing modules which are not mentioned in my package.json. There are extra modules which I am not expecting and some modules that I expect are missing. What could be the reason? How does the node modules folder get created. Does it use any global set up? I