问答详情
源自:2-1 vue-loader+webpack项目配置

npm run build 报错

https://img3.mukewang.com/5b9cff1e000125c911080290.jpg


我运行npm run build 时,提示我安装webpack-cli 我不装行不行?你们有没有遇到这个问题

提问者:AmberLee 2018-09-15 20:47

个回答

  • 感性理性
    2018-10-15 18:23:19

    npm ERR! code ELIFECYCLE

    npm ERR! errno 1

    npm ERR! todo@1.0.0 build: `webpack --config webpack.config.js`

    npm ERR! Exit status 1

    npm ERR!

    npm ERR! Failed at the todo@1.0.0 build script.

    npm ERR! This is probably not a problem with npm. There is likely additional logging output above.


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

    npm ERR!     C:\Users\hyc-lhj\AppData\Roaming\npm-cache\_logs\2018-10-15T10_19_42_277Z-debug.log

    这个是什么,调不对啊,

  • qq_逗号_EJKSTZ
    2018-09-28 15:21:53

    npm ERR! missing script: build


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

    npm ERR!     C:\Users\Administrator\AppData\Roaming\npm-cache\_logs\2018-09-28T07_18_50_143Z-debug.log

    我碰到这个问题,好蛋疼

  • 慕哥4132205
    2018-09-16 22:13:47

    不安装不行,一定要安装。