H
H
Hellas2016-09-16 07:34:41
npm
Hellas, 2016-09-16 07:34:41

How to install the latest versions of all npm packages?

There is a package.json file with all the required packages:

"dependencies": {
    "async": "*",
    "bcryptjs": "*",
    "body-parser": "*",
    "cat": "*",
    "colors": "*",
    "compression": "*",
    ...
 },

Is it considered good practice to use "*" if you want to always install the latest packages?
And do I understand correctly that in order to update the packages later, it is enough to write npm install in the root of the project?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
iBird Rose, 2016-09-16
@iiiBird

you can also write "latest"

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question