使用 create-react-app 快速构建 React 开发环境
  create-react-app 是来自于 Facebook,通过该命令我们无需配置就能快速构建 React 开发环境。

  create-react-app 自动创建的项目是基于 Webpack + ES6 。

执行以下命令创建项目:

$ cnpm install -g create-react-app
$ create-react-app my-app
$ cd my-app/
$ npm start

快速构建 React 开发环境

 

npm 安装资源国内慢,可以换成淘宝的镜像资源

$ npm config set registry https://registry.npm.taobao.org
-- 配置后可通过下面方式来验证是否成功
$ npm config get registry
-- 或 npm info express

 

相关文章:

  • 2021-11-22
  • 2021-06-30
  • 2021-04-04
  • 2021-07-01
  • 2021-05-16
  • 2022-12-23
  • 2021-06-05
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-10-27
  • 2021-08-06
  • 2021-09-06
  • 2021-12-09
  • 2021-06-18
相关资源
相似解决方案