運行npm run dev報錯的問題
1、按老師的要求打包報錯,網上說我本地的webpack版本太高,改用命令
webpack hello.js -o hello.bundle.js
2、dev和build環境都配置完成之后,運行npm run dev報錯,錯誤內容如下:
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] dev: `webpack --mode development`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] 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\yi.lingyu\AppData\Roaming\npm-cache\_logs\2018-12-25T03_38_19_017Z-debug.log
2020-02-01
輸出后是map 結構的模塊化, 為啥不是數組的呢
2019-01-03
可以使用
webpack hello.js --output hello.bundle.js --mode development?
我這里使用是可以正確輸出的,希望可以幫到你
2018-12-27
webpack hello.js ./dist/main.js --mode development 新版適用
2018-12-27
`webpack --mode development`缺失“=”符號