[英]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 存在于您的系统中,因此它可以在没有npx
或yarn
的情况下工作。
如果您执行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.