猿问

运行npm run dev 报错

× 「wds」: webpack Dev Server Invalid Options


options should NOT have additional properties


npm ERR! code ELIFECYCLE

npm ERR! errno 1

npm ERR! vue-webpack@1.0.0 dev: `cross-env NODE_ENV=development  webpack-dev-server --config webpack.config.js `

npm ERR! Exit status 1

npm ERR!

npm ERR! Failed at the vue-webpack@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:\Users\jwors\AppData\Roaming\npm-cache\_logs\2019-07-15T10_43_56_132Z-debug.log

PS C:\Users\jwors\Desktop\vue-webpack>


一只名叫tom的猫
浏览 582回答 1
1回答

翻阅古今

检查你的config文件。× 「wds」: webpack Dev Server Invalid Optionsoptions should NOT have additional properties报错信息写的很清楚了,有无效的配置项
随时随地看视频慕课网APP
我要回答