Open zhengxinyuzxy opened 1 year ago
我和你一样,还有那个*号的问题,最新版的cli.js文件好像直接大变,真的难受
试下我写的 nrm-ng
,应该比 nrm
好用些 😝。
PS D:\blog> nvm current v16.20.1 PS D:\blog> nrm -V 1.2.6 PS D:\blog> nrm ls npm ---------- https://registry.npmjs.org/ yarn --------- https://registry.yarnpkg.com/ tencent ------ https://mirrors.cloud.tencent.com/npm/ cnpm --------- https://r.cnpmjs.org/ taobao ------- undefined npmMirror ---- https://skimdb.npmjs.com/registry/ PS D:\blog> nrm current Your current registry(https://registry.npmmirror.com/) is not included in the nrm registries. Use the nrm add [home] command to add your registry. PS D:\blog> nrm ls
Add taobao mirror manually:
nrm add tb https://registry.npmmirror.com/ https://npmmirror.com
nrm use tb
新版taobao是undefined
编辑“C:\Users\用户名.nrmrc”文件,在[taobao]下增加“registry=https://registry.npmmirror.com/”保存后,重新运行nrm ls命令检查是否恢复
PS D:\blog> nvm current v16.20.1 PS D:\blog> nrm -V 1.2.6 PS D:\blog> nrm ls npm ---------- https://registry.npmjs.org/ yarn --------- https://registry.yarnpkg.com/ tencent ------ https://mirrors.cloud.tencent.com/npm/ cnpm --------- https://r.cnpmjs.org/ taobao ------- undefined npmMirror ---- https://skimdb.npmjs.com/registry/ PS D:\blog> nrm current Your current registry(https://registry.npmmirror.com/) is not included in the nrm registries. [home] command to add your registry.
PS D:\blog> nrm ls
Use the nrm add