vue 打包出现的问题解决
执行npm run build打包遇到问题如下:1.npm ERR! Failed at the pms@1.0.0 build script.npm ERR! This is probably not a problem with npm. There is likely additional logging output above.解决:升级webpack命令:npm ...
·
执行npm run build 打包遇到问题如下:
1.npm ERR! Failed at the pms@1.0.0 build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
解决: 升级webpack
命令:
-
npm i uglifyjs-webpack-plugin@1.0.0 --save
-
npm i optimize-css-assets-webpack-plugin@2 --save
执行完后打包若还是
Error: Cannot find module ‘cssnano’
npm ERR! Failed at the pms@1.0.0 build script.
继续执行命令:
-
npm install cssnano --save
-
npm install --save-dev extract-text-webpack-plugin@2.1.2
更多推荐
已为社区贡献1条内容
所有评论(0)