npm/cnpm 設置鏡像地址

npm

查看當前鏡像源:

npm config get registry

# https://registry.npmjs.org/

修改當前鏡像源:

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

cnpm

安裝 cnpm:

npm install cnpm -g

查看當前鏡像源:

cnpm config get registry

# https://registry.npm.example.com

修改當前鏡像源:

cnpm config set registry https://registry.npm.example.com

版權聲明

本博客所有的原創文章,作者皆保留版權。轉載必須包含本聲明,保持本文完整,並以超鏈接形式註明作者後除和本文原始地址:https://blog.mazey.net/2833.html

(完)

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