nextjs 程序发布,报了一堆错

18 verbose node v14.11.0
19 verbose npm  v6.14.8
20 error code ELIFECYCLE
21 error errno 1
22 error test3d@0.1.0 build: `next build`
22 error Exit status 1
23 error Failed at the test3d@0.1.0 build script.
23 error This is probably not a problem with npm. There is likely additional logging output above.
24 verbose exit [ 1, true ]

可能由于版本更新的原因
解决方法是重新安装一次,建议把之前装的都清空

rm -rf node_modules
rm package-lock.json
npm cache clear --force
npm install

 

Logo

魔乐社区(Modelers.cn) 是一个中立、公益的人工智能社区,提供人工智能工具、模型、数据的托管、展示与应用协同服务,为人工智能开发及爱好者搭建开放的学习交流平台。社区通过理事会方式运作,由全产业链共同建设、共同运营、共同享有,推动国产AI生态繁荣发展。

更多推荐