npm 查看源以及切换源

1. 设置为淘宝镜像

npm config set registry https://registry.npm.taobao.org

2. 设置回原本的源,用来发布npm包

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

3. 查看npm当前设置的源 

npm config get registry 或者 npm config list

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