I did the following to update my npm:
npm update npm -g
But I have no idea how to update Node.js. Any suggestions? (I'm using Node.js 0.4.1 and want to update to Node.js 0.6.1.)
I did the following to update my npm:
npm update npm -g
But I have no idea how to update Node.js. Any suggestions? (I'm using Node.js 0.4.1 and want to update to Node.js 0.6.1.)
For OS X, I had v5.4.1 and needed the latest version 6 so I went to the Node.js homepage and clicked on one of the links below:
I then followed the installer and then I magically had the latest version of Node.js and npm.
For macOS in 2018+ (as ALL of the solutions above are failing for me):
Simply go to the official nodejs site, download the official nodejs package and install it by double clicking. It's the most simple, safe and always-working thing you can do.
Some Linux distributions such as Arch Linux have Node.js in their package repositories. On such systems it is better to use a standard package update procedure, such as
pacman -Suy
or analogousapt-get
oryum
commands.As of now (Nov 2016) EPEL7 offers a pretty recent version of Node.js (6.9.1 which is an up-to-date LTS version offered on the Node.js home page). So on CentOS 7 and derivatives you can just add EPEL repository by
yum install epel-release
andyum install nodejs
.CentOS 6/EPEL6 has 0.10.x which isn't supported upstream since Oct 2016.
chocolately was alredy installed on my windows
i followed rob's answer
cinst nodejs.install
after a few minutes latest node is installed
Today I ran on a Windows Git Bash:
and got the following output:
Read more about it at https://www.npmjs.com/package/node.
Just install the new version over the current folder. I upgraded mine from v4.x to v6.10 on Windows.