angularjs – npm start在设置angular-seed应用程序时返回错误12
发布时间:2020-12-17 07:20:31 所属栏目:安全 来源:网络整理
导读:我正在尝试设置 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应
我正在尝试设置
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 code 0 我正在使用Ubuntu 14.04 LTS.如果有任何进一步的信息,请告诉我.
我假设net -s默认安装http-server,但事实证明它没有.
我安装了http-server sudo npm install -g http-server 在这之后刚开始运行npm.就是这样,问题就解决了. (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |