1>下载nrm
npm i -g nrm(windows)
sudo npm i -g nrm (linux和mac)
2>使用nrm管理npm源
nrm使用: Usage: cli [options] [command] Options: -V,--version output the version number -h,1)">help output usage information Commands: ls List all the registries (显示npm源列表,有*号代表当前使用的源) current Show current registry name (当前使用的npm源名称) use <registry> Change registry to registry (切换npm源) add <registry> <url> [home] Add one custom registry (添加npm源) del <registry> Delete one custom registry )(删除npm源) home <registry> [browser] Open the homepage of registry with optional browser(在浏览器中打开输入源(名称)的域名) test [registry] Show response time for specific or all registries help Print this help
原文地址:https://www.cnblogs.com/guojikun
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。