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

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

在配置webpack時,npm run build 提示要安裝webpack-cli ,可是按照webpackcli報錯,是怎么回事

D:\zhouWork\zhou-vue-learn>npm run build


> [email protected] build D:\zhouWork\zhou-vue-learn

> webpack --config webpack.config.js


One CLI for webpack must be installed. These are recommended choices, delivered as separate packages:

?- webpack-cli (https://github.com/webpack/webpack-cli)

? ?The original webpack full-featured CLI.

We will use "npm" to install the CLI via "npm install -D".

Do you want to install 'webpack-cli' (yes/no): yes

Installing 'webpack-cli' (running 'npm install -D webpack-cli')...

npm ERR! Unexpected end of JSON input while parsing near '...gistry.npmjs.org/v8-c'


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

npm ERR!? ? ?C:\Users\Administrator\AppData\Roaming\npm-cache\_logs\2019-01-25T14_41_49_948Z-debug.log

undefined

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!? ? ?C:\Users\Administrator\AppData\Roaming\npm-cache\_logs\2019-01-25T14_41_50_289Z-debug.log


D:\zhouWork\zhou-vue-learn>npm install -g webpack-cli

npm ERR! Unexpected end of JSON input while

npm ERR! A complete log of this run can be

npm ERR!? ? ?C:\Users\Administrator\AppData


正在回答

1 回答

安裝 webpack 3 就行了

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

舉報

0/150
提交
取消

在配置webpack時,npm run build 提示要安裝webpack-cli ,可是按照webpackcli報錯,是怎么回事

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

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

幫助反饋 APP下載

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

公眾號

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