Register to Better Coder! It's free.
Enjoy the premium features and succeed at every job interview.

How do you update npm packages to new versions?

Experience Level: Junior
Tags: npm


To update the npm packages open a command-line, go to your project folder that contains a file package.json and run the following command:

npm update

To update some module to the latest major version, use the following command:

npm install <package-name>@latest


No Comments Yet.
Be the first to tell us what you think.
npm for beginners
npm for beginners

Are you learning npm ? Try our test we designed to help you progress faster.

Test yourself