NodeJS

Upgrade your Server to NodeJS LTS Version from old versions

If you have NodeJS already installed , then first remove the current installation.

sudo apt-get remove --purge nodejs npm

Now lets install NodeJS LTS 4.4.0 Argon –
curl -sL https://deb.nodesource.com/setup_4.x | sudo -E bash -
sudo apt-get install -y nodejs

You might need to link to node
sudo ln /usr/bin/nodejs /usr/bin/node

Verify
node -v
node -pe process.release.lts

Advertisements
Standard

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s