gpt4 book ai didi

node.js - 'npm start' 错误

转载 作者:太空宇宙 更新时间:2023-11-04 12:20:57 24 4
gpt4 key购买 nike

我在 Ubuntu 上使用 Node v4.2.6 和 npm v3.5.2,我从 github 克隆我的项目并安装所有模块。当我执行 npm start 时它运行良好,但是当我尝试再次运行它时开始崩溃,我发现让它再次运行的唯一方法是重新克隆项目。我认为这是一个罕见的虚拟问题,有人可以帮助我吗?请原谅我的英语不好,这是 npm-debug.log 错误:

17 error Linux 4.4.0-92-generic

18 error argv "/usr/bin/nodejs" "/usr/bin/npm" "run" "lite"

19 error node v4.2.6

20 error npm v3.5.2

21 error code ELIFECYCLE

22 error firstApp-client@1.0.0 lite: lite-server

22 error Exit status 1

23 error Failed at the firstApp-client@1.0.0 lite script 'lite-server'.

23 error Make sure you have the latest version of node.js and npm installed.

23 error If you do, this is most likely a problem with the firstApp-client package,

23 error not with npm itself.

23 error Tell the author that this fails on your system:

23 error lite-server

23 error You can get information on how to open an issue for this project with:

23 error npm bugs firstApp-client

23 error Or if that isn't available, you can get their info via:

23 error npm owner ls firstApp-client

23 error There is likely additional logging output above.

24 verbose exit [ 1, true ]

最佳答案

不知道为什么,好像是nodejs版本不兼容的问题。我跑:

$ sudo npm cache clean -f

$ sudo npm install -g n

$ sudo n stable

$ sudo ln -sf /usr/local/n/versions/node/<VERSION>/bin/node /usr/bin/nodejs

一切都解决了。感谢评论

关于node.js - 'npm start' 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46005462/

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