创建 React App 花费太多时间

CreateReactApp takes too much time

当我使用命令 npx create-react-app {name} 创建 React 应用程序时,创建时间太长。关于如何让它更快的任何建议?enter image description here

这将与您的带宽有关。尝试在本地计算机上安装 CRA 并使用 npm install -g create-react-app 安装,然后使用 create-react-app {name} 而不是 npx create-react-app {name}

请注意:这是不推荐使用的 CRA 使用方式。依赖 npx 意味着始终使用最新的稳定版本,而在这种情况下,您必须自己更新 react-scripts 以保持最新。