0

I have installed node using sudo apt-get install node.

linux@linux:~$ node -v
linux@linux:~$

linux@linux:~$ npm -v
1.3.10
linux@linux:~$ 

I also download node from https://nodejs.org/en/ but, I don't find the full installation manual.

alhelal
  • 2,741

1 Answers1

2

The Node.js executable is installed to /usr/bin/nodejs and the command to show the Node.js version is:

nodejs -v  

Instead of installing the Node.js apt package with sudo apt install nodejs I recommend installing the more up-to-date Node.js snap package with sudo snap install node by following the instructions in this answer.

karel
  • 122,292
  • 133
  • 301
  • 332