繁体   English   中英

'create-react-app 有什么区别<project> ' 和 'yarn create-react-app<project> '?</project></project>

[英]What is the difference 'create-react-app <project>' and 'yarn create-react-app <project>'?

“create-react-app”和“yarn create-react-app name”有什么区别?

我不小心做了一个没有“yarn”或“npx”的项目。 它奏效了。

我想知道为什么和差异。

create-react-app可能已经作为全局 package 存在于您的系统中,因此它可以在没有npxyarn的情况下工作。

如果您执行npx create-react-app name ,则在获取最新的create-react-app后创建 react 应用程序。 这通常是推荐的。

https://www.freecodecamp.org/news/npm-vs-npx-whats-the-difference/

暂无
暂无

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

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