Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Command 'nodejs' not found, but can be installed with: sudo apt install nodejs in ububtu

Tags:

node.js

ubuntu

installed node.js already but shows

Command nodejs not found, but can be installed with:

  sudo apt install nodejs

then tried, sudo apt install nodejs

and shows

Reading package lists... Done
Building dependency tree       
Reading state information... Done
nodejs is already the newest version (14.13.1-deb-1nodesource1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

but when I try to check node.js version, $ nodejs -v it shows, Command nodejs not found, but can be installed with:

sudo apt install nodejs

Please help me to solve this error and properly see node.js version


1 Answers

The nodejs executable is called node, please run node --version to see if your installation works.

like image 79
takacsmark Avatar answered Jan 21 '26 21:01

takacsmark



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!