webpack打包vue时出错 Cannot find module 'vue-loader/lib/plugin' 是什么问题
@TOC欢迎使用Markdown编辑器你好! 这是你第一次使用 Markdown编辑器 所展示的欢迎页。如果你想学习如何使用Markdown编辑器, 可以仔细阅读这篇文章,了解一下Markdown的基本语法知识。新的改变我们对Markdown编辑器进行了一些功能拓展与语法支持,除了标准的Markdown编辑器功能,我们增加了如下几点新功能,帮助你用它写博客:全新的界面设计 ,将会带来全...
·
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’
]
}
更多推荐
已为社区贡献1条内容
所有评论(0)