npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! code@1.0.0 script: `babel js -d scripts`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the code@1.0.0 script script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm WARN Local package.json exists, but node_modules missing, did you mean to install?
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\rookieding\AppData\Roaming\npm-cache\_logs\2021-01-10T16_24_19_912Z-debug.log
错误原因在于由于文件 node_modules 太大,在项目上传时有些人会删掉
导致我们下载的项目中缺少这个文件
解决方法:在命令行中先进入文件所在路径
然后输入命令
npm i
在启动时就成功了
解决项目缺少 node_modules 文件问题
博客指出项目上传时因 node_modules 文件太大被部分人删除,导致下载的项目缺少该文件。解决办法是在命令行进入文件所在路径,输入 'npm i' 命令,即可成功启动项目。
3705

被折叠的 条评论
为什么被折叠?



