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

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

老師報錯什么意思

Invalid configuration object. Webpack has been initialised using a configuration object that does not match the API schema.

?- configuration.output.path: The provided value "./dist/js" is not an absolute path!

? ?-> The output directory as **absolute path** (required).


npm ERR! Windows_NT 6.1.7601

npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "run" "webpack"

npm ERR! node v6.9.2

npm ERR! npm ?v3.10.9

npm ERR! code ELIFECYCLE

npm ERR! webpack-demo@1.0.0 webpack: `webpack --config webpack.config.js --progress --display-modules --colors --display-reasons`

npm ERR! Exit status 1

npm ERR!

npm ERR! Failed at the webpack-demo@1.0.0 webpack script 'webpack --config webpack.config.js --progress --display-modules --colors --display-reasons'.

npm ERR! Make sure you have the latest version of node.js and npm installed.

npm ERR! If you do, this is most likely a problem with the webpack-demo package,

npm ERR! not with npm itself.

npm ERR! Tell the author that this fails on your system:

npm ERR! ? ? webpack --config webpack.config.js --progress --display-modules --colors --display-reasons

npm ERR! You can get information on how to open an issue for this project with:

npm ERR! ? ? npm bugs webpack-demo

npm ERR! Or if that isn't available, you can get their info via:

npm ERR! ? ? npm owner ls webpack-demo

npm ERR! There is likely additional logging output above.


npm ERR! Please include the following file with any support request:

npm ERR! ? ? D:\imooc\webpack-demo\npm-debug.log


正在回答

3 回答

我也遇到了 得虧掃了一下官網(wǎng) 挺多問題需要解決的

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

http://img1.sycdn.imooc.com//5a7408b80001428107490304.jpg

如上圖配置即可

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

報錯的意思是:"./dist/js"不是一個絕對路徑,你需要配一個絕對路徑。

1、在webpack配置文件頂部先引入node的路徑模塊文件? var path = require('path');?

2、再把路徑改為?path.resolve(__dirname ,?"./dist/js")。 PS:__dirname前面是兩個底部下劃線,不是一個

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

舉報

0/150
提交
取消

老師報錯什么意思

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

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

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動學習伙伴

公眾號

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