碎梦千泷落
2019-04-20 09:29
Error: Cannot find module 'htmlWebpackPlugin'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:582:15)
at Function.Module._load (internal/modules/cjs/loader.js:508:25)
at Module.require (internal/modules/cjs/loader.js:637:17)
at require (D:\nodejs\node_global\node_modules\webpack-cli\node_modules\_v8-compile-cache@2.0.2@v8-compile-cache\v8-compile-cache.js:159:20)
at Object.<anonymous> (D:\workspace\webpack-demo1\webpack.config.js:1:89)
at Module._compile (D:\nodejs\node_global\node_modules\webpack-cli\node_modules\_v8-compile-cache@2.0.2@v8-compile-cache\v8-compile-cache.js:178:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:712:10)
at Module.load (internal/modules/cjs/loader.js:600:32)
at tryModuleLoad (internal/modules/cjs/loader.js:539:12)
at Function.Module._load (internal/modules/cjs/loader.js:531:3)
at Module.require (internal/modules/cjs/loader.js:637:17)
at require (D:\nodejs\node_global\node_modules\webpack-cli\node_modules\_v8-compile-cache@2.0.2@v8-compile-cache\v8-compile-cache.js:159:20)
at WEBPACK_OPTIONS (D:\nodejs\node_global\node_modules\webpack-cli\bin\convert-argv.js:115:13)
at requireConfig (D:\nodejs\node_global\node_modules\webpack-cli\bin\convert-argv.js:117:6)
at D:\nodejs\node_global\node_modules\webpack-cli\bin\convert-argv.js:124:17
at Array.forEach (<anonymous>)
at module.exports (D:\nodejs\node_global\node_modules\webpack-cli\bin\convert-argv.js:122:15)
at yargs.parse (D:\nodejs\node_global\node_modules\webpack-cli\bin\cli.js:228:39)
at Object.parse (D:\nodejs\node_global\node_modules\webpack-cli\node_modules\_yargs@12.0.5@yargs\yargs.js:567:18)
at D:\nodejs\node_global\node_modules\webpack-cli\bin\cli.js:206:8
at Object.<anonymous> (D:\nodejs\node_global\node_modules\webpack-cli\bin\cli.js:505:3)
at Module._compile (internal/modules/cjs/loader.js:701:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:712:10)
at Module.load (internal/modules/cjs/loader.js:600:32)
at tryModuleLoad (internal/modules/cjs/loader.js:539:12)
at Function.Module._load (internal/modules/cjs/loader.js:531:3)
at Module.require (internal/modules/cjs/loader.js:637:17)
at require (internal/modules/cjs/helpers.js:22:18)
at Object.<anonymous> (D:\nodejs\node_global\node_modules\webpack\bin\webpack.js:156:2)
at Module._compile (internal/modules/cjs/loader.js:701:30)
第一次跟着敲没问题,有一次不小心把node_modules文件夹删除了我就重新搭项目,但是却一直出现这样的错误,插件是github上的安装指令,提示也是正常的,按理来说安装没问题啊。
是大小写问题吗?看你声明时是怎样的咯
你写的是htmlWebpackPlugin
应该是大写的吧HtmlWebpackPlugin
webpack深入与实战
86561 学习 · 721 问题
相似问题