故障描述:换了一台电脑后npm publish报错:“Unable to authenticate, need: BASIC realm="Sonatype Nexus Repository Manager"”
解决方法:清空C:\Users\think\.npmrc
然后执行:
npm adduser --registry=http://nexus.mirror.xxx.com.cn/repository/npm-hosted/
重新上传:
npm adduser
故障描述:换了一台电脑后npm publish报错:“Unable to authenticate, need: BASIC realm="Sonatype Nexus Repository Manager"”
解决方法:清空C:\Users\think\.npmrc
然后执行:
npm adduser --registry=http://nexus.mirror.xxx.com.cn/repository/npm-hosted/
重新上传:
npm adduser
代号
知之为知之 不知为不知 是知也