react搭建

2019年3月22日 21:54:34

node => 8.11.1

npm => 5.6.0

react => ^16.8.4

  1. npm install -g create-react-app
  2. create-react-app my-app

但是!!npm贼慢,所以 =》

npm config set registry https://registry.npm.taobao.org
这样就可以在npm的时候也用的是cnpm了
然后 cd my-app
npm start
ok!

posted @ 2019-03-22 22:00  安全佬  阅读(204)  评论(0编辑  收藏  举报