Navigate to the Node.js website and click on the latest stable version or the newest current release (with the latest features).Ģ. Bz doing so, the system should overwrite the older version with the updated one.ġ.
One way to update your Node.js is to go to its official download page and install the newest release. Option 1: Update Node.js on Windows and macOS with Installer
I just installed Node.js on a new Windows 7 machine, with the following results: > node -v
To install nvm itself you can use the install script (requires git) using cURL: $ curl | shĪll these approaches I've used on MacOSX and Linux, I don't have any experience on how to manage Node.js versions on Windows, I can only suppose that the n (the second one) will work for Microsoft's OS (at least from the cygwin). If you want to see which versions are already installed, use: $ nvm ls nvmrc file containing version number in the project root folder then run the following command to switch to the specified version: $ nvm use To download, compile, and install the latest v0.10.x release of the Node.js using nvm: $ nvm install 0.10Īnd then you can switch to the installed version: $ nvm use 0.10 Nvm is also like RVM, even the command names and usage are very similar. The n package is written on pure linux shell and available as a npm module (contains package.json), so if you have any Node.js installed, you can install/update the n through the npm: $ npm install -g n To select a node version from the list use up and down arrows and activate using enter.
Install Node.js versions easily: $ n 0.10.26
N is most likely to rvm (Ruby Version Manager), and can be used to manage and update node/npm versions.
To install brew to your Mac: $ ruby -e "$(curl -fsSL )" You also will be able to switch to the one of the previous versions if you need, for example: $ brew switch node 0.10.26
Later you will be able to update it using $ brew update & brew upgrade node To install NodeJS and NPM using brew: $ brew install node There are several approaches to keep up to date the Node.js and NPM, you need to use one of the following version managers: Homebrew As you may know, NPM is currently bundled with Node.js, it means that if you have installed node you already have installed npm.