Tuto




  This Tutoriel was checked for the last time the : 23/03/2016

 23/03/2016

 James B.

 2 minutes

 Information:

install NodeJS v4.2.3 LTS (Mature and dependable) on Ubuntu

Source :
https://www.digitalocean.com/community/tutorials/how-to-set-up-a-node-js-application-for-production-on-ubuntu-14-04


  • Terminal:
    
     sudo apt-get install --assume-yes git wget
     cd ~
     wget https://nodejs.org/dist/v4.2.3/node-v4.2.3-linux-x64.tar.gz
     mkdir node
     tar xvf node-v*.tar.gz --strip-components=1 -C ./node
     rm -rf ~/node-v*
     mkdir node/etc
     echo 'prefix=/usr/local' > node/etc/npmrc
     sudo mv node /opt/
     sudo chown -R root: /opt/node
     sudo ln -s /opt/node/bin/node /usr/local/bin/node
     sudo ln -s /opt/node/bin/npm /usr/local/bin/npm
     node -v