$create react app my app
在C:\Users\devar\Desktop\test React\my app中创建一个新的React应用程序。
正在安装程序包。这可能需要几分钟时间。正在使用cra模板安装react、react-dom和react脚本。。。
core-js@2.6.11postinstall C:\Users\devar\Desktop\test react\my app\node_modules\babel runtime\node_modules\core js节点-e";try{require('./postinstall(}catch(e({}">
core-js@3.6.5postinstall C:\Users\devar\Desktop\test react\my app\node_modules\core js节点-e";try{require('./postinstall(}catch(e({}">
core-js-pure@3.6.5postinstall C:\Users\devar\Desktop\test react\my app\node_modules\core js-pure节点-e";try{require('./postinstall(}catch(e({}">
- cra-template@1.0.3
- react-scripts@3.4.1
- react@16.13.1
- react-dom@16.13.1添加了来自750个贡献者的1607个包,并在60.007秒内审核了1611个包
65个一揽子计划正在寻求资金运行npm fund
了解详细
发现1个低严重性漏洞运行npm audit fix
以修复它们,或运行npm audit
以获取的详细信息
确保安装了Node.js:
https://nodejs.org/en/
请务必选择LTS版本(在撰写本文时为12.8.3(。
运行node -v
,应显示高于8.10 的版本
运行npm -v
,应显示高于5.6 的版本
使用NPX安装应用程序
如果您想知道NPX是从哪里来的:
NPX与NPM版本5.2+捆绑在一起
npx create-react-app my-app
cd my-app
npm start