angularjs – npm start在设置angular-seed应用程序时返回错误127

前端之家收集整理的这篇文章主要介绍了angularjs – npm start在设置angular-seed应用程序时返回错误127前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我正在尝试设置 angular-seed application.

我已经用sudo apt-get install nodejs安装了nodejs

使用sudo apt-get install npm安装npm

安装凉亭与sudo apt-get安装凉亭-g

使用sudo apt-get install nodejs-legacy安装了nodejs-legacy

打开我的angular-seed应用程序,运行npm install.这完美运行没有任何错误.

要启动服务器,我正在尝试使用npm start,但它返回以下信息和错误.

  1. > angular-seed@0.0.0 prestart /home/venki/Downloads/angular-seed
  2. > npm install
  3.  
  4.  
  5. > angular-seed@0.0.0 postinstall /home/venki/Downloads/angular-seed
  6. > bower install
  7.  
  8.  
  9. > angular-seed@0.0.0 start /home/venki/Downloads/angular-seed
  10. > http-server -a localhost -p 8000 -c-1
  11.  
  12. sh: 1: http-server: not found
  13. npm ERR! weird error 127
  14. npm WARN This failure might be due to the use of legacy binary "node"
  15. npm WARN For further explanations,please read
  16. /usr/share/doc/nodejs/README.Debian
  17.  
  18. npm ERR! not ok code 0

我正在使用Ubuntu 14.04 LTS.如果有任何进一步的信息,请告诉我.

@H_403_18@
我假设net -s默认安装http-server,但事实证明它没有.

我安装了http-server

  1. sudo npm install -g http-server

在这之后刚开始运行npm.就是这样,问题就解决了.

猜你在找的Angularjs相关文章