- 查看npm下载的镜像源
npm config get registry
// 默认是:https://registry.npmjs.org/
2.修改为淘宝镜像源
npm config set registry https://registry.npm.taobao.org
3.创建项目
npx create-react-app todolist
// npx comes with npm 5.2+,可以直接使用 npx create-react-app
// 也可以使用 npm init react-app todolist --需要 npm 6+
原文: 简书链接