npm 啟動項目 npm run serve/dev的時候報了個錯:再次記錄一下
! code ELIFECYCLE
npm ERR! errno 1
npm ERR! new@0.1.0 serve:vue-cli-service serve
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the new@0.1.0 serve script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Admin\AppData\Roaming\npm-cache_logs\2023-02-06T14_17_03_399Z-debug.log
一, 問題原因
項目啟動失敗,一直報錯,翻譯一下,大概意思就是依賴包或者模板有問題
二,解決方法
1.需要找到node_modules
把這個文件夾刪掉
如下圖
2.然后cmd或者vscode終端再運行npm install
即可,這個命令會重新安裝一下依賴包,最后在執(zhí)行npm run serve
或npm run dev
就可以解決啦!文章來源:http://www.zghlxwxcb.cn/news/detail-790948.html
文章來源地址http://www.zghlxwxcb.cn/news/detail-790948.html
到了這里,關(guān)于npm 報錯“A complete log of this run can be found in:”解決方法的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!