1.查看npm的鏡像源
npm config get registry
// 默認是:https://registry.npmjs.org/
2.修改成淘寶的鏡像源
npm config set registry https://registry.npm.taobao.org
3.create-react-app創建項目
npx create-react-app myapp
npm config get registry
// 默認是:https://registry.npmjs.org/
npm config set registry https://registry.npm.taobao.org
npx create-react-app myapp