问答详情
源自:-

出现不了dist以及bundle.js文件

npm ERR! code ELIFECYCLE

npm ERR! errno 1

npm ERR! vue-ssr-tech@1.0.0 build: `webpack --config webpack.config.js`

npm ERR! Exit status 1

npm ERR!

npm ERR! Failed at the vue-ssr-tech@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!     /Users/zhangrong/.npm/_logs/2018-06-13T02_37_04_892Z-debug.log

第二章第一节,已经配置了

"scripts": {

"test": "echo \"Error: no test specified\" && exit 1",

"build": "webpack --config webpack.config.js"

},

以及

module:{

rules:[

{test:/.vue$/,

loader:'vue-loader'}]}

,但是仍然出来这个错误,没有出来dist文件


提问者:慕斯卡4413583 2018-06-13 10:44

个回答

  • 千山暮雪梦里红妆
    2018-06-17 01:53:21

    https://www.imooc.com/qadetail/260557