求解,为什么
Error: spawn webpack-dev-server ENOENT
const VueLoaderPlugin = require('vue-loader/lib/plugin') module.exports = { // ... plugins: [ new VueLoaderPlugin() ] }前面格式不好看
同样错误已解决,官网上找到的解决方案: Vue Loader v15 now requires an accompanying webpack plugin to function properly: // webpack.config.jsconst VueLoaderPlugin = require('vue-loader/lib/plugin')module.exports = { // ... plugins: [ new VueLoaderPlugin() ]}