Vue前端打包报错

一、Vue前端打包报错

1.1 UnhandledPromiseRejectionWarning: Error: ϵͳ�Ҳ���ָ����·����

DeprecationWarning: The 'parserOptions.ecmaFeatures.experimentalObjectRestSpread' option is deprecated. Use 'parserOptions.ecmaVersion' instead. (found in "standard")
UnhandledPromiseRejectionWarning: Error: ϵͳ�Ҳ���ָ����·����
报错示例:
image
解决方式:
①使用rm -rf删除掉项目中的node_modules目录以及package-lock.json
②使用cnpm install重新安装
③使用cnpm run buildnpm run build重新打包
④当①②③都用过还不行的时候,再执行①后在使用npm cache clean清掉缓存

posted @ 2022-04-22 15:50  爱吃糖的橘猫  阅读(665)  评论(0编辑  收藏  举报