Upgrade Node JS from the CLI

Posted on in Node JS

First check your current version of Node JS:

$node -v
> v0.10.18

Clear your npm cache:

sudo npm cache clean -f

Install Node:

sudo npm install -g n

Upgrade to a later version (this step can take a while) You can specify a particular version like so:

sudo n 0.10.23

Or you can just tell the manager to install the latest stable version:

sudo n stable

Check the running version of Node to verify:

$node -v
> v0 you could look here.10.23

Post a Comment

Your email is never published nor shared.
Required fields are marked *