I
I
Innokenty Ivanov2017-06-11 21:34:52
Node.js
Innokenty Ivanov, 2017-06-11 21:34:52

If I run npm update --save will devDependencies be moved to dependencies?

Here I am doing it npm update --save. There are devDependencies in packages.json.
Will these packages be moved to dependencies when updated?
If so, what is the proper way to update dependencies?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Misha, 2017-06-12
@hvdd

No, they won't move.
The command npm updatewill update local packages from dependencies .
The key −−saveis updating the minimum versions of packages in package.json .
The key −−devis to include packages from devDependencies in the update .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question