How To Upgrade NVM, NPM, Node, and NPX

As a “backender” in the world of ̶J̶a̶v̶a̶S̶c̶r̶i̶p̶t̶ frontend, I was looking for commands and options on keeping versions of core components consistent. That’s mainly about NVM, NPM, Node.js, and NPX.


For now, the most recent version of NVM is v0.34.0 and to install or updated NVM use this command (I will keep this command updated):

curl -o- | bash


Install Node

brew update
brew install npm

To upgrade the version of NPM use following command:

npm install -g npm@latest


Once you have nvm installed you can use the following command to get the latest stable version of Node.js

nvm install stable


Since NPX is also node package we can use NPM to install or update it:

npm install -g npx

If you’ve any feedback, feel free to tell me what I can improve, or provide better examples.

Follow me on Twitter and GitHub for more code snippets, posts, updates. Happy coding! :)

My YouTube Channel:


Software Engineer. for code snippets and periodic posts. Follow Twitter for updates.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store