vue-admin打包报错

vue-admin打包报错
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! vue-admin-template@3.8.0 build: node build/build.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the vue-admin-template@3.8.0 build 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\zhanglin\AppData\Roaming\npm-cache\_logs\2022-01-20T16_08_40_176Z-debug.log


回答:

一般遇到这种情况可以试试删除 node_modules ,在重新 npm i


回答:

这种情况在以前搭建vue项目的时候遇到过好几次,一般就是重新换目录安装,然后再build。


回答:

删包node_modules,建议用yarn吧!(https://yarn.bootcss.com/)。我之前用npm一堆麻烦。

以上是 vue-admin打包报错 的全部内容, 来源链接: utcz.com/p/936938.html

回到顶部