How can I install nodejs in an ssh console?


I want to install nodejs but it does not leave me, it gives me an error about the -f command and it gives me invalid.

I install it this way:

  tar -xvf node-v6.9.1-linux-x86.tar.xz
  mv node-v6.9.1-linux-x86 node
  cd node
asked by Eddy Otsutsuki 12.11.2016 в 02:03

2 answers


If you use Debian or Ubuntu, you enter the terminal and type the following:

sudo apt-get update

Then install the nodejs package

sudo apt-get install nodejs npm

Then to see if you have installed nodejs, you type in the terminal:

nodejs -v

npm is the default package manager for Node.js

answered by 28.11.2016 в 03:36

is directly

sudo apt-get install nodejs
answered by 12.11.2016 в 02:57