npm配置国内源方法

通过命令配置

命令

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

验证命令

npm config get registry

通过使用cnpm安装

安装cnpm

npm install -g cnpm --registry=https://registry.npm.taobao.org

使用cnpm

cnpm install xxx
posted @ 2020-02-06 12:56  6。  阅读(4812)  评论(1编辑  收藏  举报