Answer the question
In order to leave comments, you need to log in
Why does npm install remove all installed modules?
I add a new dependency to the project, I write to the console npm install quill-image-extend-module --save-dev
(for example)
The new module is loaded, the old ones are removed from the node_modules folder.
everything remains in place in package.json
After that, I do npm install
it and it downloads all the modules again.
This is fine?
Answer the question
In order to leave comments, you need to log in
It's an npm bug It 's been fixed
in the latest version, you can upgradenpm i -g [email protected]
ok check json syntax of package.json file
it will check first package.json and check node_modules packages then remove old ones and download new ones deleting previous ones.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question