0
我是新来的节点js。开始建立节点js项目。npm start命令给出错误:http-server:命令未找到,代码:ELIFECYCLE
使用npm start命令时出现错误。
NPM启动
> [email protected] start /usr/local/UserProfile/TitanUI
> http-server -p 8080
sh: http-server: command not found
npm ERR! Linux 2.6.32-504.8.1.el6.x86_64
npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "start"
npm ERR! node v6.7.0
npm ERR! npm v3.10.3
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn
npm ERR! [email protected] start: `http-server -p 8080`
npm ERR! spawn ENOENT
npm ERR! Failed at the [email protected] start script 'http-server -p 8080'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the sigma package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! http-server -p 8080
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs sigma
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls sigma
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /usr/local/UserProfile/TitanUI/npm-debug.log
这些是CentOS的,NPM和节点JS版本。
的CentOS:6.6
NPM:3.10
的NodeJS:6.7.0 我想我有最新版本的only..Please帮助我,如果任何人知道这件事。
你可以请你发布你的package.json文件吗? –
嗨问题解决了谢谢..删除节点模块和,NPM安装解决了这个问题... – Ahi
但不应该node_modules文件夹有一个可执行文件? –