gpt4 book ai didi

node.js - npm start 命令给出错误 : http-server:command not found , 代码:ELIFECYCLE

转载 作者:行者123 更新时间:2023-12-04 19:44:10 27 4
gpt4 key购买 nike

我是 Node js 的新手。开始设置 node js 项目。

使用 npm start 命令时出错。

npm 开始

> sigma@1.1.0 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! sigma@1.1.0 start: `http-server -p 8080`
npm ERR! spawn ENOENT
npm ERR! Failed at the sigma@1.1.0 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 和 node js 的版本。

分:6.6

npm:3.10

Node :6.7.0
我想我只有最新版本。如果有人知道这一点,请帮助我。

最佳答案

删除 Node 模块文件夹并再次运行“npm install”和“npm start”。这解决了上述错误。谢谢!

关于node.js - npm start 命令给出错误 : http-server:command not found , 代码:ELIFECYCLE,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39769440/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com