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.
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.
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.
node -v
is the command for showing the Node.js version for the Node.js snap package. For showing the Node.js apt package version see this answer: https://askubuntu.com/questions/594656/how-to-install-the-latest-versions-of-nodejs-and-npm
– karel
May 19 '18 at 05:54
sudo snap refresh node --channel=8/stable
It's a great feature, you can have multiple Node.js versions installed alongside each other with the Node.js snap package, and select which version of Node.js to use for each project.
– karel
May 19 '18 at 06:05
How do I start with Node.js after I installed it?
– alhelal May 19 '18 at 04:56sudo apt-get install nodejs
– May 19 '18 at 05:45