vue+webpack项目运行报错

无法识别这些选项:display-error-details, display-cached

npm ERR! Darwin 16.4.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "run" "dev"
npm ERR! node v6.3.1
npm ERR! npm  v3.10.3
npm ERR! code ELIFECYCLE
npm ERR! vue@1.0.0 dev: `webpack-dev-server --inline --hot --port 8080 --progress --profile --colors --watch --display-error-details  --display-cached  --config ./webpack.dev.config.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the vue@1.0.0 dev script 'webpack-dev-server --inline --hot --port 8080 --progress --profile --colors --watch --display-error-details  --display-cached  --config ./webpack.dev.config.js'.
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 vue package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     webpack-dev-server --inline --hot --port 8080 --progress --profile --colors --watch --display-error-details  --display-cached  --config ./webpack.dev.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 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!     /Users/mr.dao/work/Git/cubee.mfShare.h5/npm-debug.log
➜  cubee.mfShare.h5 git:(master) npm run dev

webpack-dev-server 2.3.0
webpack 2.2.1
Usage: https://webpack.js.org/configuration/dev-server/

无法识别这些选项:display-error-details, display-cached

npm ERR! Darwin 16.4.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "run" "dev"
npm ERR! node v6.3.1
npm ERR! npm  v3.10.3
npm ERR! code ELIFECYCLE
npm ERR! vue@1.0.0 dev: `webpack-dev-server --inline --hot --port 8080 --progress --profile --colors --watch --display-error-details  --display-cached  --config ./webpack.dev.config.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the vue@1.0.0 dev script 'webpack-dev-server --inline --hot --port 8080 --progress --profile --colors --watch --display-error-details  --display-cached  --config ./webpack.dev.config.js'.
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 vue package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     webpack-dev-server --inline --hot --port 8080 --progress --profile --colors --watch --display-error-details  --display-cached  --config ./webpack.dev.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 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!     /Users/mr.dao/work/Git/cubee.mfShare.h5/npm-debug.log

求救啊!跑不起来。一直报这个错

阅读 5.3k
2 个回答

检查一下自己的 npm,node,vue 的版本

有时候npm在国内会丢包,把依赖包删除,然后安装cnpm,用cnpm重新下载依赖试试cnpm

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题