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

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

npm run build報錯

> [email protected] build D:\vue

> webpack --config webpack.config.js


D:\vue\node_modules\webpack\bin\webpack.js:3

let webpackCliInstalled = false;

^^^

SyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode

? ? at exports.runInThisContext (vm.js:53:16)

? ? at Module._compile (module.js:373:25)

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

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

? ? at Function.Module._load (module.js:300:12)

? ? at Function.Module.runMain (module.js:441:10)

? ? at startup (node.js:139:18)

? ? at node.js:968:3


npm ERR! Windows_NT 10.0.14393

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

npm ERR! node v4.4.3

npm ERR! npm? v2.15.1

npm ERR! code ELIFECYCLE

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 'webpack --config webpack.config.js'.

npm ERR! This is most likely a problem with the vue 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

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

npm ERR!? ? ?npm bugs vue

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

npm ERR!

npm ERR!? ? ?npm owner ls vue

npm ERR! There is likely additional logging output above.


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

npm ERR!? ? ?D:\vue\npm-debug.log


正在回答

1 回答

你用的這是1.0版本的vue嗎


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

舉報

0/150
提交
取消
Vue+Webpack打造todo應用
  • 參與學習       84618    人
  • 解答問題       812    個

用前端最熱門框架Vue+最火打包工具Webpack打造todo應用

進入課程

npm run build報錯

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

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

幫助反饋 APP下載

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

公眾號

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