vue 打包项目时报错
run
npm fund
for details
npm ERR! Missing script: “build”
npm ERR!
npm ERR! To see a list of scripts, run:
npm ERR! npm run
npm ERR! A complete log of this run can be found in: C:\Users\Lenovo\AppData\Local\npm-cache_logs\2023-03-31T02_19_40_340Z-debug-0.log
解决方式:
修改package.json
文件,添加了下图中红框内容就可以了
“serve”: “vue-cli-service serve”,
“build”: “vue-cli-service build”