【发布时间】:2015-03-19 16:01:54
【问题描述】:
我正在尝试设置angular-seed application。
我已经用sudo apt-get install nodejs安装了nodejs
用sudo apt-get install npm安装npm
用sudo apt-get install bower -g安装凉亭
使用sudo apt-get install nodejs-legacy 安装nodejs-legacy
打开我的 angular-seed 应用程序,运行 npm install。运行完美,没有任何错误。
要启动服务器,我尝试使用npm start,但它返回以下信息和错误。
> angular-seed@0.0.0 prestart /home/venki/Downloads/angular-seed
> npm install
> angular-seed@0.0.0 postinstall /home/venki/Downloads/angular-seed
> bower install
> angular-seed@0.0.0 start /home/venki/Downloads/angular-seed
> http-server -a localhost -p 8000 -c-1
sh: 1: http-server: not found
npm ERR! weird error 127
npm WARN This failure might be due to the use of legacy binary "node"
npm WARN For further explanations, please read
/usr/share/doc/nodejs/README.Debian
npm ERR! not ok code 0
我使用的是 Ubuntu 14.04 LTS。如果需要任何进一步的信息,请告诉我。
【问题讨论】:
标签: angularjs node.js ubuntu npm bower