Contents

使用nrm为npm换源

Contents

本来也不准备写这个,在前面很多篇关于hexo搭建和备份的博客里都有这部分内容,但没想到nrm使用还能报错了,那就还是记录一下吧,说实话我觉得这种版本不兼容导致的错误应该很快会被修复。

安装

node16及以下

1
npm install --location=global nrm --registry=https://registry.npm.taobao.org

以上

1
npm install -g nrm open@8.4.2 --save registry=https://registry.npm.taobao.org

原因见nrm安装后报错

使用

1
nrm use taobao