webpack打包vue时出错 Cannot find module ‘vue-loader/lib/plugin’ 是什么问题

C:\Users\haoao\Desktop\VM\WebpackVue>webpack
C:\Users\haoao\Desktop\VM\WebpackVue\node_modules\webpack-cli\bin\cli.js:93
throw err;
^

Error: Cannot find module ‘vue-loader/lib/plugin’
Require stack:

  • C:\Users\haoao\Desktop\VM\WebpackVue\webpack.config.js
  • C:\Users\haoao\Desktop\VM\WebpackVue\node_modules\webpack-cli\bin\utils\convert-argv.js
  • C:\Users\haoao\Desktop\VM\WebpackVue\node_modules\webpack-cli\bin\cli.js
  • D:\Vue\node-vue.JS download\node.JGB\anzhuanglujing\nodejs\node_modules\webpack-cli\node_modules\import-local\index.js
  • D:\Vue\node-vue.JS download\node.JGB\anzhuanglujing\nodejs\node_modules\webpack-cli\bin\cli.js
  • D:\Vue\node-vue.JS download\node.JGB\anzhuanglujing\nodejs\node_modules\webpack\bin\webpack.js
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:797:15)
    at Function.Module._load (internal/modules/cjs/loader.js:690:27)
    at Module.require (internal/modules/cjs/loader.js:852:19)
    at require (C:\Users\haoao\Desktop\VM\WebpackVue\node_modules\v8-compile-cache\v8-compile-cache.js:161:20)
    at Object. (C:\Users\haoao\Desktop\VM\WebpackVue\webpack.config.js:2:25)
    at Module._compile (C:\Users\haoao\Desktop\VM\WebpackVue\node_modules\v8-compile-cache\v8-compile-cache.js:192:30)
    at Object.Module._extensions…js (internal/modules/cjs/loader.js:995:10)
    at Module.load (internal/modules/cjs/loader.js:815:32)
    at Function.Module._load (internal/modules/cjs/loader.js:727:14)
    at Module.require (internal/modules/cjs/loader.js:852:19)
    at require (C:\Users\haoao\Desktop\VM\WebpackVue\node_modules\v8-compile-cache\v8-compile-cache.js:161:20)
    at WEBPACK_OPTIONS (C:\Users\haoao\Desktop\VM\WebpackVue\node_modules\webpack-cli\bin\utils\convert-argv.js:114:13)
    at requireConfig (C:\Users\haoao\Desktop\VM\WebpackVue\node_modules\webpack-cli\bin\utils\convert-argv.js:116:6)
    at C:\Users\haoao\Desktop\VM\WebpackVue\node_modules\webpack-cli\bin\utils\convert-argv.js:123:17
    at Array.forEach ()
    at module.exports (C:\Users\haoao\Desktop\VM\WebpackVue\node_modules\webpack-cli\bin\utils\convert-argv.js:121:15)
    at C:\Users\haoao\Desktop\VM\WebpackVue\node_modules\webpack-cli\bin\cli.js:71:45
    at Object.parse (C:\Users\haoao\Desktop\VM\WebpackVue\node_modules\yargs\yargs.js:567:18)
    at C:\Users\haoao\Desktop\VM\WebpackVue\node_modules\webpack-cli\bin\cli.js:49:8
    at Object. (C:\Users\haoao\Desktop\VM\WebpackVue\node_modules\webpack-cli\bin\cli.js:366:3)
    at Module._compile (internal/modules/cjs/loader.js:959:30)
    at Object.Module._extensions…js (internal/modules/cjs/loader.js:995:10)
    at Module.load (internal/modules/cjs/loader.js:815:32)
    at Function.Module._load (internal/modules/cjs/loader.js:727:14)
    at Module.require (internal/modules/cjs/loader.js:852:19)
    at require (internal/modules/cjs/helpers.js:74:18)
    at module.exports (D:\Vue\node-vue.JS download\node.JGB\anzhuanglujing\nodejs\node_modules\webpack-cli\node_modules\import-local\index.js:16:66)
    at D:\Vue\node-vue.JS download\node.JGB\anzhuanglujing\nodejs\node_modules\webpack-cli\bin\cli.js:15:6
    at Object. (D:\Vue\node-vue.JS download\node.JGB\anzhuanglujing\nodejs\node_modules\webpack-cli\bin\cli.js:366:3)
    at Module._compile (internal/modules/cjs/loader.js:959:30) {
    code: ‘MODULE_NOT_FOUND’,
    requireStack: [
    ‘C:\Users\haoao\Desktop\VM\WebpackVue\webpack.config.js’,
    ‘C:\Users\haoao\Desktop\VM\WebpackVue\node_modules\webpack-cli\bin\utils\convert-argv.js’,
    ‘C:\Users\haoao\Desktop\VM\WebpackVue\node_modules\webpack-cli\bin\cli.js’,
    ‘D:\Vue\node-vue.JS download\node.JGB\anzhuanglujing\nodejs\node_modules\webpack-cli\node_modules\import-local\index.js’,
    ‘D:\Vue\node-vue.JS download\node.JGB\anzhuanglujing\nodejs\node_modules\webpack-cli\bin\cli.js’,
    ‘D:\Vue\node-vue.JS download\node.JGB\anzhuanglujing\nodejs\node_modules\webpack\bin\webpack.js’
    ]
    }
Logo

前往低代码交流专区

更多推荐