我已经下载了webpack-cli了,但是依然报错。蒙蔽了D:\web\products\webpackTest2>webpack-cli-v2.0.10D:\web\products\webpackTest2>webpack-dev-server-vTheCLImovedintoaseparatepackage:webpack-cli.Pleaseinstall'webpack-cli'inadditiontowebpackitselftousetheCLI.->Whenusingnpm:npminstallwebpack-cli-D->Whenusingyarn:yarnaddwebpack-cli-Dmodule.js:540throwerr;^Error:Cannotfindmodule'webpack-cli/bin/config-yargs'atFunction.Module._resolveFilename(module.js:538:15)atFunction.Module._load(module.js:468:25)atModule.require(module.js:587:17)atrequire(internal/module.js:11:18)atObject.(D:\web\products\webpackTest2\node_modules\_webpack-dev-server@3.1.0@webpack-dev-server\bin\webpack-dev-server.js:65:1) atModule._compile(module.js:643:30)atObject.Module._extensions..js(module.js:654:10)atModule.load(module.js:556:32)attryModuleLoad(module.js:499:12)atFunction.Module._load(module.js:491:3)
RISEBY
森栏
相关分类