[webpack-cli] Unable to load '@webpack-cli/serve' command
[webpack-cli] TypeError: options.forEach is not a function
at WebpackCLI.makeCommand (D:\自学\webpack\change-rows-color\node_modules\webpack-cli\lib\webpack-cli.js:173:21)
at ServeCommand.apply (D:\自学\webpack\change-rows-color\node_modules\@webpack-cli\serve\lib\index.js:42:19)
at loadCommandByName (D:\自学\webpack\change-rows-color\node_modules\webpack-cli\lib\webpack-cli.js:907:35)
at async Command. (D:\自学\webpack\change-rows-color\node_modules\webpack-cli\lib\webpack-cli.js:1462:17)
at async Promise.all (index 0)
at async WebpackCLI.run (D:\自学\webpack\change-rows-color\node_modules\webpack-cli\lib\webpack-cli.js:1500:9)
at async runCLI (D:\自学\webpack\change-rows-color\node_modules\webpack-cli\lib\bootstrap.js:11:9)
这个错误是安装了 npm install webpack-dev-server@3.11.2 -D 然后报错
重新安装一下webpack cli就好了
npm install webpack-cli -D
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)