简体   繁体   English

如何避免每次都使用 npx Create-react-app

[英]How to avoid using npx Create-react-app every time

Idk but it take too long too settle things...should i install it globally -g? Idk,但解决问题需要太长时间......我应该在全球范围内安装它 -g 吗? It installs react,react-dom too everytime..if i'd install react globally will it reduce time?它每次都安装react,react-dom ..如果我在全球范围内安装react会减少时间吗?

Keep a git repository which is a bare CRA app.保留一个 git 存储库,它是一个裸 CRA 应用程序。 Whenever starting a new project copy over the files.每当启动一个新项目时,复制文件。 I particularly like this for typescript projects where I set up ESlint the way I prefer then save it to a project starter repo.我特别喜欢 typescript 项目,我以我喜欢的方式设置 ESlint,然后将其保存到项目启动器存储库中。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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