为了账号安全,请及时绑定邮箱和手机立即绑定

SyntaxError: Missing initializer in const declaration

有同学报一下错误的吗?

npm run build


> vue_todo@1.0.0 build /Users/yangyuhang/workspace/vue_todo

> webpack --config webpack.config.js


/Users/yangyuhang/workspace/vue_todo/webpack.config.js:1

(function (exports, require, module, __filename, __dirname) { const path require('path')

                                                                    ^^^^


SyntaxError: Missing initializer in const declaration

    at createScript (vm.js:80:10)

    at Object.runInThisContext (vm.js:139:10)

    at Module._compile (module.js:607:28)

    at Object.Module._extensions..js (module.js:654:10)

    at Module.load (module.js:556:32)

    at tryModuleLoad (module.js:499:12)

    at Function.Module._load (module.js:491:3)

    at Module.require (module.js:587:17)

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

    at requireConfig (/Users/yangyuhang/workspace/vue_todo/node_modules/webpack/bin/convert-argv.js:97:18)

npm ERR! code ELIFECYCLE

npm ERR! errno 1

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

npm ERR! Exit status 1

npm ERR! 

npm ERR! Failed at the vue_todo@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!     /Users/yangyuhang/.npm/_logs/2018-02-18T13_11_36_499Z-debug.log


正在回答

举报

0/150
提交
取消

SyntaxError: Missing initializer in const declaration

我要回答 关注问题
意见反馈 帮助中心 APP下载
官方微信