亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定

剛進行到npm run build的時候提示要安裝webpack-cli

剛進行到npm run build的時候提示要安裝webpack-cli,不裝進行不了。裝好了以后再運行也報錯

D:\Vue_program\vue-ssr-tech\node_modules\webpack\lib\cli.js:66

? ? ? ? ? ? ? ? ? ? ? ? .replace(

? ? ? ? ? ? ? ? ? ? ? ? ^

SyntaxError: Invalid regular expression: /(\p{Uppercase_Letter}+|\p{Lowercase_Letter}|\d)(\p{Uppercase_Letter}+)/: Invalid escape

? ? at pathToArgumentName (D:\Vue_program\vue-ssr-tech\node_modules\webpack\lib\cli.js:66:4)

? ? at addFlag (D:\Vue_program\vue-ssr-tech\node_modules\webpack\lib\cli.js:170:16)

? ? at traverse (D:\Vue_program\vue-ssr-tech\node_modules\webpack\lib\cli.js:243:21)

? ? at traverse (D:\Vue_program\vue-ssr-tech\node_modules\webpack\lib\cli.js:299:23)

? ? at traverse (D:\Vue_program\vue-ssr-tech\node_modules\webpack\lib\cli.js:248:24)

? ? at Object.getArguments (D:\Vue_program\vue-ssr-tech\node_modules\webpack\lib\cli.js:308:2)

? ? at Object.<anonymous> (D:\Vue_program\vue-ssr-tech\node_modules\webpack-cli\lib\utils\cli-flags.js:245:30)

? ? at Module._compile (D:\Vue_program\vue-ssr-tech\node_modules\v8-compile-cache\v8-compile-cache.js:192:30)

? ? at Object.Module._extensions..js (module.js:663:10)

? ? at Module.load (module.js:565:32)

npm ERR! code ELIFECYCLE

npm ERR! errno 1

npm ERR! [email protected] build: `webpack --config webpack.config.js`

npm ERR! Exit status 1

npm ERR!

npm ERR! Failed at the [email protected] 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!? ? ?D:\nodejs\node_cache\_logs\2020-12-09T03_57_27_871Z-debug.log


正在回答

2 回答

webpack-cli版本太高,降到3.幾的版本就可以了

0 回復 有任何疑惑可以回復我~

已經安裝了[email protected]? [email protected]

依舊顯示這個錯誤

0 回復 有任何疑惑可以回復我~

舉報

0/150
提交
取消

剛進行到npm run build的時候提示要安裝webpack-cli

我要回答 關注問題
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號