我看过并执行了这篇文章中的几乎每一个答案:The CLI moved into a separate package: webpack-cli它没有帮助。请允许我陈述我的观点: 所以我开发了一个容器文件夹,这是一个单独的应用程序,我在其中运行了npm init -y,然后安装了以下内容: npm install html-webpack-plugin@4.5.0Would you like to install @webpac
我正在处理ReactJS应用程序,并配置了"webpack": "^2.7.0","webpack-cli": "^2.0.9“,但是在cmd中运行webpack时,它有以下错误。presetToOptions' of undefined
at processOptions (F:\reactJs_weather\React-Weather-App\node_modules\webpack-cli
<anonymous> (/Users/monz777/test/node_modules/@webpack-cli/serve/lib/createConfig.js:4:34)
at Module.<anonymous> (Users/monz777/test/node_modules/@webpack-cli/serve/lib/startDev
我是React.js新手,我试图从有关的教程中学习,但我遇到了错误。下面是执行npm命令时控制台上的错误:> reactapp1@1.0.0 start C:\Users\HP\Desktopinstall .webpack-cli. in addition to webpack itself to use the CLI.
-> When using npm: npm install webpack-cli</e
我安装了webpack的最新版本:"webpack-cli": "^2.0.9"The CLI movedPlease install 'webpack-cli' in addition to webpack itself to use the CLI.
-> When using npm: npm install<