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

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

npm run build出現(xiàn)報(bào)錯(cuò),解決方法

webpack 4.0以上 ,npm run build出現(xiàn)報(bào)錯(cuò)解決方法


正在回答

7 回答

還是不行

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

> shizhan-vue@1.0.0 build E:\web前段\shizhan-vue

> webpack --mode development


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



按照大神的方法出現(xiàn)了這個(gè)問題,是什么原因怎么破?我試著安裝了webpack-cli后報(bào)以下錯(cuò)誤


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

npm WARN shizhan-vue@1.0.0 No description

npm WARN shizhan-vue@1.0.0 No repository field.

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.4 (node_modules\fsevents):

npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.4: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})


+ webpack-cli@3.1.0

added 76 packages in 54.02s

TypeError: path.jion is not a function

? ? at Object.<anonymous> (E:\web前段\shizhan-vue\webpack.config.js:6:12)

? ? at Module._compile (E:\web前段\shizhan-vue\node_modules\v8-compile-cache\v8-compile-cache.js:178:30)

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

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

? ? at tryModuleLoad (module.js:505:12)

? ? at Function.Module._load (module.js:497:3)

? ? at Module.require (module.js:596:17)

? ? at require (E:\web前段\shizhan-vue\node_modules\v8-compile-cache\v8-compile-cache.js:159:20)

? ? at WEBPACK_OPTIONS (E:\web前段\shizhan-vue\node_modules\webpack-cli\bin\convert-argv.js:133:13)

? ? at requireConfig (E:\web前段\shizhan-vue\node_modules\webpack-cli\bin\convert-argv.js:135:6)

? ? at E:\web前段\shizhan-vue\node_modules\webpack-cli\bin\convert-argv.js:142:17

? ? at Array.forEach (<anonymous>)

? ? at module.exports (E:\web前段\shizhan-vue\node_modules\webpack-cli\bin\convert-argv.js:140:15)

? ? at yargs.parse (E:\web前段\shizhan-vue\node_modules\webpack-cli\bin\cli.js:241:39)

? ? at Object.parse (E:\web前段\shizhan-vue\node_modules\yargs\yargs.js:563:18)

? ? at E:\web前段\shizhan-vue\node_modules\webpack-cli\bin\cli.js:219:8

? ? at Object.<anonymous> (E:\web前段\shizhan-vue\node_modules\webpack-cli\bin\cli.js:530:3)

? ? at Module._compile (module.js:652:30)

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

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

? ? at tryModuleLoad (module.js:505:12)

? ? at Function.Module._load (module.js:497:3)

? ? at Module.require (module.js:596:17)

? ? at require (internal/module.js:11:18)

? ? at runCommand.then (E:\web前段\shizhan-vue\node_modules\webpack\bin\webpack.js:152:5)

? ? at <anonymous>

? ? at process._tickCallback (internal/process/next_tick.js:188:7)

npm ERR! code ELIFECYCLE

npm ERR! errno 1

npm ERR! shizhan-vue@1.0.0 build: `webpack --mode development`

npm ERR! Exit status 1

npm ERR!

npm ERR! Failed at the shizhan-vue@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\小陸\AppData\Roaming\npm-cache\_logs\2018-08-06T08_48_54_669Z-debug.log


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

qq_天涼好個(gè)秋_14

我也出現(xiàn)這個(gè)問題,請問怎么解決?
2019-02-09 回復(fù) 有任何疑惑可以回復(fù)我~
#2

幕布斯6436195 回復(fù) qq_天涼好個(gè)秋_14

對啊,一樣的。我也是啊
2019-04-26 回復(fù) 有任何疑惑可以回復(fù)我~
#3

qianjunyifa

問題原因:node運(yùn)行內(nèi)存不足出現(xiàn)崩潰! 方法1:node.js版本過低,將node升級到最高版本。升級方法可根據(jù)自己系統(tǒng)自行百度; 方法2:package.json文件,將scripts:里的"build": "node build/build.js",更換成"build": "node -max_old_space_size=4096 build/build.js";()
2020-03-17 回復(fù) 有任何疑惑可以回復(fù)我~

厲害了,問題已經(jīng)解決

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

可以,已解決

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

這個(gè)可以,已解決。

是webpack升級到4以后的問題

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

可以,解決了

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

1,修改package.json中代碼

將老師編輯的?

"build": "webpack --config webpack.config.js"

修改為

"build": "webpack --mode development"

2,修改webpack.config.js中代碼

頂部添加

const {

VueLoaderPlugin

} = require('vue-loader');

將【module】中新增【css】以及末尾添加【plugins】

修改為:

module: {

rules: [{

test: /.vue$/,

loader: 'vue-loader'

}, {

test: /.css$/,

use: ['vue-style-loader', 'css-loader']

}]

},

plugins: [

new VueLoaderPlugin()

]


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

wason

修改之后報(bào)loaderContext.emitError is not a function
2018-06-30 回復(fù) 有任何疑惑可以回復(fù)我~
#2

weibo_姚望微晨_0 回復(fù) wason

報(bào)一樣的錯(cuò)誤,請問解決了嗎?
2018-07-04 回復(fù) 有任何疑惑可以回復(fù)我~
#3

qq_情融化了雪_0

可以,靠譜
2018-07-16 回復(fù) 有任何疑惑可以回復(fù)我~
#4

YeeTodd 回復(fù) weibo_姚望微晨_0

同問啊
2018-07-16 回復(fù) 有任何疑惑可以回復(fù)我~
#5

慕斯卡拉

厲害,解決了
2018-07-20 回復(fù) 有任何疑惑可以回復(fù)我~
#6

40huo

解決了,靠譜。
2018-07-25 回復(fù) 有任何疑惑可以回復(fù)我~
#7

Terence_Jing 回復(fù) wason

里面有一個(gè)假線程報(bào)錯(cuò)了錯(cuò)誤,我也遇到了,很是苦惱,還沒解決
2018-07-28 回復(fù) 有任何疑惑可以回復(fù)我~
#8

iOS_侯陽陽

謝謝你,我問題解決了
2019-03-04 回復(fù) 有任何疑惑可以回復(fù)我~
查看5條回復(fù)

舉報(bào)

0/150
提交
取消

npm run build出現(xiàn)報(bào)錯(cuò),解決方法

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

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

幫助反饋 APP下載

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

公眾號

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