问答详情
源自:3-2 配置vue的jsx写法以及postcss

安装完包后npm run dev 抱一下错误,还望指教

cross-env NODE_ENV=development webpack-dev-server --config webpack.config.js


'cross-env' ▒▒▒▒▒ڲ▒▒▒▒ⲿ▒▒▒Ҳ▒▒▒ǿ▒▒▒▒еij▒▒▒

▒▒▒▒▒▒▒▒▒ļ▒▒▒

npm ERR! code ELIFECYCLE

npm ERR! errno 1

npm ERR! todo@1.0.0 dev: `cross-env NODE_ENV=development webpack-dev-server --config webpack.config.js`

npm ERR! Exit status 1

npm ERR!

npm ERR! Failed at the todo@1.0.0 dev 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\Administrator\AppData\Roaming\npm-cache\_logs\2019-05-28T14_22_30_962Z-debug.log


提问者:慕妹6594235 2019-05-28 22:27

个回答

  • saragy
    2020-04-11 15:21:43

    npm i html-webpack-plugin

  • 慕沐9401406
    2019-05-29 23:45:00

    之前遇到过好像是版本的问题,删除重装一遍就好了。还不行就去除一下缓存。但是不知道具体什么原因,感觉webpack也要好好学一学。。。。