E
E
Eugene2018-10-04 01:00:53
Node.js
Eugene, 2018-10-04 01:00:53

NPM does not install packages and the node_modules folder is not created, what should I do?

Hey!
I study working with gulp and it turns out that NPM installs packages, but the node_modules folder is not created, and when, for example, the code is run,
npm install -g gulp.spritesmith --save-dev
everything will be unscrewed, I will receive a message that everything is ok, and the dependency will not be added to gulpfile.js, respectively, you need to manually enter it there and Webstorm offers to run the package installation in a pop-up window where something like

/usr/local/bin/node /usr/local/lib/node_modules/npm/bin/npm-cli.js install --scripts-prepend-node-path=auto

Who faced this, please tell me what to do to return the normal installation of packages?
The project itself started from scratch

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ivan Shumov, 2018-10-04
@epalguev

-g - global installation, not in your application

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question