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

vue+webpack 但是npm start运行报这个错误,大家知道这是什么意思吗?

vue+webpack 但是npm start运行报这个错误,大家知道这是什么意思吗?

千万里不及你 2019-03-19 17:13:02
my-first-vue-project@1.0.0 dev E:vuemy-first-vue-projectwebpack-dev-server --inline --progress --config build/webpack.dev.conf.jsmodule.js:538throw err;^Error: Cannot find module 'balanced-match'at Function.Module._resolveFilename (module.js:536:15)at Function.Module._load (module.js:466:25)at Module.require (module.js:579:17)at require (internal/module.js:11:18)at Object.<anonymous> (E:\vue\my-first-vue-project\node_modules\brace-expansion\index.js:2:16)at Module._compile (module.js:635:30)at Object.Module._extensions..js (module.js:646:10)at Module.load (module.js:554:32)at tryModuleLoad (module.js:497:12)at Function.Module._load (module.js:489:3)npm ERR! code ELIFECYCLEnpm ERR! errno 1npm ERR! my-first-vue-project@1.0.0 dev: webpack-dev-server --inline --progress --config build/webpack.dev.conf.jsnpm ERR! Exit status 1npm ERR!npm ERR! Failed at the my-first-vue-project@1.0.0 dev 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:UsersAdministratorAppDataRoamingnpm-cache_logs2018-03-27T01_17_53_319Z-debug.lognpm ERR! code ELIFECYCLEnpm ERR! errno 1npm ERR! my-first-vue-project@1.0.0 start: npm run devnpm ERR! Exit status 1npm ERR!npm ERR! Failed at the my-first-vue-project@1.0.0 start 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:UsersAdministratorAppDataRoamingnpm-cache_logs2018-03-27T01_17_53_369Z-debug.log
查看完整描述

4 回答

?
人到中年有点甜

TA贡献1895条经验 获得超7个赞

你好,这个问题,我也遇到了,其实就是本地host的问题,127.0.0.1 localhost


查看完整回答
反对 回复 2019-03-28
?
BIG阳

TA贡献1859条经验 获得超6个赞

缺少'balanced-match'模块啊,直接npm install 'balanced-match',再看看


查看完整回答
反对 回复 2019-03-28
?
ibeautiful

TA贡献1993条经验 获得超5个赞

看下你的package.json文件。配置是不是不对


查看完整回答
反对 回复 2019-03-28
?
喵喔喔

TA贡献1735条经验 获得超5个赞

可以再npm install一次,不行再把nodemodule文件夹删了,再npm indtall一次就好了


查看完整回答
反对 回复 2019-03-28
  • 4 回答
  • 0 关注
  • 1624 浏览
慕课专栏
更多

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信