J
J
JohnDaniels2018-02-06 22:14:35
npm
JohnDaniels, 2018-02-06 22:14:35

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
5a79fe3ab2d40589391449.png
After that, I do npm installit and it downloads all the modules again.
This is fine?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
I
Ilya Shatokhin, 2018-03-26
@JohnDaniels

It's an npm bug It 's been fixed
in the latest version, you can upgrade
npm i -g [email protected]

N
Nurasyl Aldan, 2018-02-07
@nurasyl

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 question

Ask a Question

731 491 924 answers to any question