繁体   English   中英

Node.js安装错误

[英]Node.js installation error

我已经根据以下网址安装了Node.js,NVM和NPM: https//www.digitalocean.com/community/tutorials/how-to-install-node-js-on-an-ubuntu-14-04-server

我的工作目录如下所示:

Working_Files \\ WebRTC包含以下文件:

  • package.json
  • server.js

Working_Files \\ WebRTC \\ views包含一个索引文件:

index.ejs

在Working_Files \\ WebRTC中,为了运行服务器,请使用:

  node server.js

每次必须重复安装中说明的过程时,否则会收到错误消息:

 node server.js 
 The program 'node' can be found in the following packages:
  * node
  * nodejs-legacy
  Try: sudo apt-get install <selected package>

错误在哪里?

谢谢

试试这个: sudo ln -s "$(which nodejs)" /usr/bin/node

并再次运行node server.js

暂无
暂无

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

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