问题描述
我在电脑上安装 nrm 管理镜像时使用nrm use taobao命令发现无效
- 疑问一 nrm use taobao 之后 运行nrm current 显示的镜像为什么仍然为空
- 疑问二 使用nrm ls ,按照网上教程指出在当前镜像前会显示 * ,我安装的nrm没有 在任何镜像资源前显示 * ,怎么办,如何解决?
问题出现的平台版本及
- 操作系统:Mac、Windowss11版本
相关代码
vue-starter % 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 ------- https://registry.npmmirror.com/
npmMirror ---- https://skimdb.npmjs.com/registry/
mytaobao ----- http://registry.npm.taobao.org/
vue-starter % nrm use taobao
Registry has been set to: https://registry.npm.taobao.org/
vue-starter % nrm current
vue-starter %
- 以上问题就是nrm use无效,我希望能解决命令无效的问题,请问该怎么做?
解决办法:
卸载已安装的nrm 重新安装其他用户【@adams549659584】的nrm包,即可解决
npm uninstall -g nrm
npm i -g @adams549659584/nrm