Node.js - Update npm on Linux

by
Jeremy Canfield |
Updated: July 22 2024
| Node.js articles
The npm install command can be used to update npm. Before updating npm, the npm --version command can be used to display the current version of npm.
~]# npm --version
6.14.13
The following command will update npm to the latest stable version.
npm install npm@latest --global
Then reissued the npm --version command.
~]# npm --version
7.20.3
Did you find this article helpful?
If so, consider buying me a coffee over at