简体   繁体   中英

Creating React apps using npx create-react-app is very slow , Is there any way to speed it up?

我是一个正在尝试学习 React 的新开发人员,所以在这个过程中我正在创建多个 react 项目所以我使用 npx create-react-app 创建了 react 项目,所以每次我创建 react app 时,都需要很长时间来创建它,有什么办法可以加快使用 npx create-react-app 创建 React 应用程序的速度,因为我正在创建许多不同的应用程序用于学习目的

Issue is reported here and added to next milestone .

If you want temporary patch you can follow this comment

  1. Install patch-package https://www.npmjs.com/package/patch-package#set-up
  2. Open the webpack file: node_modules/react-scripts/config/webpack.config.js
  3. Add cache to the eslint plugin
new​ ​ESLintPlugin​(​{​
  ​cache​: ​true​,​
  ...
})
  1. Run the patch package script yarn patch-package react-scripts
  2. Normally run the app now.

Remove the patch later after fix.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM