打开vue项目中的package.json查看一下script的设置,是否如下图

npm run build命令运行后报错 npm ERR! missing script: build

 

 如果是的话,那么运行打包命令的时候要运行

npm run build:prod --report

 

相关文章:

  • 2021-06-01
  • 2021-11-18
  • 2021-07-09
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2023-03-14
  • 2022-12-23
猜你喜欢
  • 2021-06-08
  • 2021-07-16
  • 2022-12-23
相关资源
相似解决方案