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
(完)