简体   繁体   中英

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

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

nodejs 可执行文件名为node ,请运行node --version以查看您的安装是否有效。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM