简体   繁体   English

未找到命令“nodejs”,但可以使用以下命令安装:sudo apt install nodejs in ububtu

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

installed node.js already but shows已安装 node.js 但显示

Command nodejs not found, but can be installed with:找不到命令nodejs ,但可以安装:

  sudo apt install nodejs

then tried, sudo apt install nodejs然后尝试, 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:但是当我尝试检查 node.js 版本时, $ nodejs -v它显示,找不到命令nodejs ,但可以安装:

sudo apt install nodejs

Please help me to solve this error and properly see node.js version请帮我解决这个错误并正确查看 node.js 版本

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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