问答详情
源自:5-1 重点知识点回顾

打包时报错

我在尝试打包的时候报错

错误提示:

npm ERR! missing script: bulid:prod

npm ERR!

npm ERR! Did you mean this?

npm ERR!     build:prod


npm ERR! A complete log of this run can be found in:

npm ERR!     D:xxxxxxxxxxxx


package.json 中的部分代码:

"scripts": {

    "serve": "vue-cli-service serve",

    "build": "vue-cli-service build",

    "lint": "vue-cli-service lint"

  },


我在网上百度的时候发现大部分情况的package.json文件中的scripts中都有有 "build:prod",但是我的scripts只有这三行,请问这个要怎么解决? 求教大佬们



提问者:超级大傻花_biu_biu 2020-04-26 13:39

个回答

  • 慕用332143
    2020-05-21 22:55:56

    使用 npm bun build