第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定

運(yùn)行 npm run build時(shí)報(bào)錯(cuò)

> todolist@1.0.0 build E:\work\todoList

> 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.

?- webpack-command (https://github.com/webpack-contrib/webpack-command)

? ?A lightweight, opinionated webpack CLI.

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

Which one do you like to install (webpack-cli/webpack-command):


One CLI needs to be installed alongside webpack to use the CLI.

npm ERR! code ELIFECYCLE

npm ERR! errno 1

npm ERR! todolist@1.0.0 build: `webpack --config webpack.config.js`

npm ERR! Exit status 1

npm ERR!

npm ERR! Failed at the todolist@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!? ? ?C:\Users\Tom\AppData\Roaming\npm-cache\_logs\2018-06-01T07_54_45_313Z-debug.log


正在回答

8 回答

Which one do you like to install (webpack-cli/webpack-command):

提示輸入時(shí),輸出webpack-cli即可

0 回復(fù) 有任何疑惑可以回復(fù)我~

樓主,解決了嗎,可以分享下嘛

0 回復(fù) 有任何疑惑可以回復(fù)我~

解決了嗎

0 回復(fù) 有任何疑惑可以回復(fù)我~

以上兩個(gè)方法都試過(guò)了,沒用

0 回復(fù) 有任何疑惑可以回復(fù)我~
#1

最不強(qiáng)程序員

我也是
2019-05-22 回復(fù) 有任何疑惑可以回復(fù)我~

在webpack.config.js文件添加

const VueLoaderPlugin = require('vue-loader/lib/plugin')

module.exports = {

????//里面添加:

????plugins: [

????????new VueLoaderPlugin()

????]

}

這樣就不會(huì)報(bào)錯(cuò)了

0 回復(fù) 有任何疑惑可以回復(fù)我~
#1

晨風(fēng)不可依米

當(dāng)然你也必須安裝 webpack-cli
2019-01-07 回復(fù) 有任何疑惑可以回復(fù)我~

那個(gè)都沒有起效


0 回復(fù) 有任何疑惑可以回復(fù)我~

webpack-cli和webpack-commond 選一個(gè)

0 回復(fù) 有任何疑惑可以回復(fù)我~

輸入npm install webpack-cli -g或者npm install?webpack-commond -g即可,必須加-g ,也就是全局安裝,否則不行


1 回復(fù) 有任何疑惑可以回復(fù)我~

舉報(bào)

0/150
提交
取消

運(yùn)行 npm run build時(shí)報(bào)錯(cuò)

我要回答 關(guān)注問(wèn)題
微信客服

購(gòu)課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)