Skip to content

install node js and npm

Konrad Gondek edited this page Sep 25, 2016 · 1 revision

NodeJS setup

Install NodeJS

$ sudo apt-get update && sudo apt-get upgrade

next download node (this will download the latest stable package):

wget http://node-arm.herokuapp.com/node_latest_armhf.deb

then install the package:

sudo dpkg -i node_latest_armhf.deb

check the installation is working (the following command will return the version number of node):

node -v

v0.12.0

you may also want to check the npm version as well:

npm -v

2.5.1

Getting a newer version of Node

A

$ wget https://nodejs.org/dist/v4.2.2/node-v4.2.2-linux-arm64.tar.gz

  • unpack:

$ tar -zxvf node-v4.2.2-linux-arm64.tar.gz

wget https://nodejs.org/dist/v4.2.2/node-v4.2.2-linux-arm64.tar.gz

or B [3]

  • $ curl -sL https://deb.nodesource.com/setup_4.x | sudo -E bash -
  • $ sudo apt-get install -y nodejs

optional: * $ sudo apt-get install -y build-essential

Clone this wiki locally