npx create-react-app 使用淘寶鏡像

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

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章