npm的鏡像替換成淘寶

1.獲得本來的鏡像地址npm

npm get registry get

> https://registry.npmjs.org/淘寶

設成淘寶的yarn

npm config set registry http://registry.npm.taobao.org/co

yarn config set registry http://registry.npm.taobao.org/config

 

 

2.換成原來的ps

npm config set registry https://registry.npmjs.org/鏡像

相關文章
相關標籤/搜索