获取当前使用的镜像源npmconfiggetregistryhttps://registry.npmjs.org/使用指定的镜像源npmconfigsetregistryhttps://registry.npm.taobao.org/使用npmconfig命令更改镜像源太麻烦,我们使用nrm来帮助我们管理多个镜像源npminrm-gnrm-V1.2.1nrm显示当前可用的源nrmls*npm-------https://registry.npmjs.org/yarn------https://registry.yarnpkg.com/cnpm------http://r.cnpmjs.org/taobao-----https://registry.npm.taobao.org/nj--------https://registry.nodejitsu.com/npmMirror--https://skimdb.npmjs.com/registry/edunpm-----http://registry.enpmjs.org/nrm列出了当前可切换的源,左边有星号的表示当前正在使用的源。使用列表中的源nrmusenjRegistry已经设置为:https://registry.nodejitsu.com/nrm也可以用来测试镜像源的延迟nrmtestyarncnpm---208msnrmtesttaobaotaobao-102ms
