Skip to content

Node: Let's Cook

Kiran Chauhan on May 03, 2018

This is a second article. You can read first here or here. The only software that I like is one that I can easily understand and solves my proble... [Read Full]
markdown guide

Just a note, most Linux distros have a wayyyyyyy old version of node in their repositories. I’d recommend using node vsersion manager:

2) copy/paste this into your terminal: curl -o- | bash
3) copy this into your terminal OR just close it and reopen it: export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/" ] && . "$NVM_DIR/" # This loads nvm
4) type this into your terminal: nvm install node8.11.1
5) type this into your terminal: nvm use node8.11.1
6) profit! (Use node -v to confirm it’s installed correctly)

Great little starter tutorial tho!


Hi Jacob,

You are right. Most of GNU/Linux Distros have old version of NodeJS. But, you see I am using v10.0.0. I was able to update with this mentioned solution at stackoverflow.


That's cool, I've never seen the n tool. Looks really good though! I'll probably stick to using nvm just cause of how easy it is to switch node versions


Recently I am testing how to install Node on one of my friends Kimsufi server. So I am sure your instructions are handy. I was not aware of the CURL option to download and install. I only learned that it was not debian linux so I failed with apt-get command. I am wonder how can you find out Linux type and version from the command prompt. I mean to either use yum or apt-get, how to find out which works?


Well to find out what distribution of Linux you're running you can run this command: cat /etc/*-release and you should get an output like so:

From this you can search in whatever search engine you like: How to install package on ${DISTRIB_ID} and see what comes up :)

code of conduct - report abuse