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

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

照著打,出現(xiàn)問題 和講的 不一樣什么鬼?

https://img1.sycdn.imooc.com//5cf7298100018ca207420344.jpg

PS D:\項(xiàng)目文件\vue_practice> npm run build


> vue_practice@1.0.0 build D:\項(xiàng)目文件\vue_practice

> 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): n

You need to install 'webpack-cli' to use webpack via CLI.

You can also install the CLI manually.

npm ERR! code ELIFECYCLE

npm ERR! errno 1

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

npm ERR! Exit status 1

npm ERR!

npm ERR! Failed at the vue_practice@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\Mr 宋\AppData\Roaming\npm-cache\_logs\2019-06-04T08_58_12_946Z-debug.log

PS D:\項(xiàng)目文件\vue_practice> npm install -g vur-cli

npm ERR! code E404

npm ERR! 404 Not Found: vur-cli@latest


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

npm ERR!? ? ?C:\Users\Mr 宋\AppData\Roaming\npm-cache\_logs\2019-06-04T10_02_42_159Z-debug.log


正在回答

3 回答

你的包安裝有問題,視頻中用的包和webpack比較舊了,有些包現(xiàn)在都被棄用了。

你可以參照webpack4的文檔來(lái)選用官方推薦的包,可以參考我的代碼

我用的是最新版本的webpack4.x,不會(huì)出現(xiàn)安裝報(bào)錯(cuò)的問題。?

https://github.com/carrieguo/vue.js-todolist

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

你好,視頻中webapck是3.x的版本,請(qǐng)按視頻中的webpack指定的版本去學(xué)習(xí)。

安裝的時(shí)候指定下版本,比如: npm i webpack@3.10.0

你也可以參考下我整理的源碼:https://github.com/Xiao-Cuir/vue-webpack-todo

這樣能少走一點(diǎn)彎路,希望能幫到你

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

可能沒裝webpack-cli吧

在項(xiàng)目根目錄npm -i?webpack-cli。

視頻里是3.0現(xiàn)在從網(wǎng)上下的都4.0,和視頻肯那個(gè)會(huì)有出入

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

舉報(bào)

0/150
提交
取消

照著打,出現(xiàn)問題 和講的 不一樣什么鬼?

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

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

幫助反饋 APP下載

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

公眾號(hào)

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