How do you update npm packages to new versions?
Experience Level: Junior
Tags: npm
Answer
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
Related npm job interview questions
Should you store node_modules directory to a version control?
npm JuniorHow do you install npm?
npm JuniorUsing npm, how can you install multiple modules at once locally?
npm JuniorUsing npm, how can you display a list of all installed global packages?
npm JuniorWhat does npm audit fix command do and when would you use it?
npm Junior
Chat
Oh, the operator is not available. Leave us your comments. We will answer all your questions as soon as possible.
Anonymous
Καλησπέρα.
Καλησπέρα.
Anonymous
the infinteis -3/15 so 1triition / infinet
the infinteis -3/15 so 1triition / infinet
Anonymous
e
e
Anonymous
<a href="https://inspirum.pl "
<a href="https://inspirum.pl "
Anonymous
[url]https://inspirum.pl[/url]
[url]https://inspirum.pl[/url]
LaceJaguar65
e
e
LaceJaguar65
e
e
LaceJaguar65
e
e
LaceJaguar65
e
e
LaceJaguar65
e
e
LaceJaguar65
e
e
LaceJaguar65
e
e
LaceJaguar65
e
e
LaceJaguar65
e
e
LaceJaguar65
e
e
LaceJaguar65
e
e
LaceJaguar65
e
e
LaceJaguar65
e
e
LaceJaguar65
e
e
LaceJaguar65
e
e
LaceJaguar65
e
e
LaceJaguar65
e
e
LaceJaguar65
e
e
LaceJaguar65
e
e
LaceJaguar65
e
e