Showing posts with label nodejs. Show all posts
Showing posts with label nodejs. Show all posts

Tuesday, April 12, 2016

How to Upgrade NodeJS to Latest Version using NPM

If we want to upgrade NodeJS to latest version using NPM.

we have to run following commands in Terminal.

sudo npm cache clean -f

sudo npm install -g n

sudo n stable

How To Install Node.js on an Ubuntu

Introduction -

Node.js® is a JavaScript runtime built on Chrome's V8 JavaScript engine. Node.js uses an event-driven, non-blocking I/O model that makes it lightweight and efficient. Node.js' package ecosystem, npm, is the largest ecosystem of open source libraries in the world.

How to install - 

In order to install nodejs, We just have to use 'apt' package manager.

First of all, We should refresh our local package index.


Now we will install nodejs -

If you want to also install 'npm' , which is the Node.js package manager