使用npm安装其他东西时,
例:npm install -g cluster
安装失败且提示:code E401
Unable to authenticate, need: BASIC realm="Sonatype Nexus Repository Manager"
这时需要执行:npm config set registry https://registry.npmjs.org/
然后再install即可正常安装
使用npm安装其他东西时,
例:npm install -g cluster
安装失败且提示:code E401
Unable to authenticate, need: BASIC realm="Sonatype Nexus Repository Manager"
这时需要执行:npm config set registry https://registry.npmjs.org/
然后再install即可正常安装