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

my-first-vue-project@1.0.0 dev E:vuemy-first-vue-project

webpack-dev-server --inline --progress --config build/webpack.dev.conf.js

module.js:538


throw 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 ELIFECYCLE

npm ERR! errno 1

npm ERR! my-first-vue-project@1.0.0 dev: webpack-dev-server --inline --progress --config build/webpack.dev.conf.js

npm ERR! Exit status 1

npm 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.log

npm ERR! code ELIFECYCLE

npm ERR! errno 1

npm ERR! my-first-vue-project@1.0.0 start: npm run dev

npm ERR! Exit status 1

npm 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


千万里不及你
浏览 1625回答 4
4回答

人到中年有点甜

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

BIG阳

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

ibeautiful

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

喵喔喔

可以再npm install一次,不行再把nodemodule文件夹删了,再npm indtall一次就好了
打开App,查看更多内容
随时随地看视频慕课网APP

相关分类

JavaScript