Angularjs   发布时间:2022-04-20  发布网站:大佬教程  code.js-code.com
大佬教程收集整理的这篇文章主要介绍了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,但它返回以下信息和错误.

> 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 @R_26_6756@@H_403_14@ 
 

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

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

我安装了http-server

sudo npm install -g http-server@H_403_14@ 
 

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

大佬总结

以上是大佬教程为你收集整理的angularjs – npm start在设置angular-seed应用程序时返回错误127全部内容,希望文章能够帮你解决angularjs – npm start在设置angular-seed应用程序时返回错误127所遇到的程序开发问题。

如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。