react-01:安装
2019-07-08 本文已影响0人
左木北鱼
1.换镜像源:
- 查看:
npm config get registry
- 更换:
npm config set registry https://registry.npm.taobao.org
2.重新安装:
npx create-react-app my-app
3.运行
-
npm start
npm start
页面
初始化代码
npm config get registry
npm config set registry https://registry.npm.taobao.org
npx create-react-app my-app
npm start