Node.js updates quickly. Fortunately, there are a ton of tools for updating Node.js easily.
- nvm
- n
Today, I’m gonna use n to update Node.js.
1. Install n
$ npm install -g n
2. Update Node.js to stable version
$ n stable
You can replace the stable with whataver version you want.
3. Check what versions are installed
$ n