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.
Install Node.js
The binary packages for node come from NodeSource. I choose to install the latest version which is v7.
-
curl -sL https://deb.nodesource.com/setup_7.x | sudo -E bash -
-
sudo apt install nodejs
-
sudo apt install build-essential
Node is now installed but additional setup is needed to use it fully.
-
sudo mkdir /var/nodes