1. 切换npm默认使用镜像仓库 npm config set registry https://registry.npm.taobao.org 2.检擦是否切换成功 npm config get registry 3.创建项目 create-react-app myapp