Addictd
Addictd

Reputation: 87

what is the difference between node and nodejs

After installing node via npm , using 'nvm ls' gives the version which i have installed like v8.9.4 and also node -v also shows the version. But at the same time, when checking for 'nodejs --version' tells me to install node js as 'sudo apt-get install nodejs'.

Upvotes: 5

Views: 3923

Answers (1)

Usman Mutawakil
Usman Mutawakil

Reputation: 5259

Via npm or nvm Node.js is called node but if you install via apt-get you need to use the package name nodejs because via apt-get node is a package name take by a completely different application that happens to also be called node.

what are the differences between node.js and node?

Upvotes: 4

Related Questions