背景:
切换私有源提示:
npm ERR! code E401
npm ERR! Unable to authenticate, need: BASIC realm="Sonatype Nexus Repository Manager"
解决方法:
1、输入 npm config list 获取 npm 配置
2、找到 userconfig 一项
3、打开 .npmrc 文件
4、删除已配置的私有源地址和 NpmToken
5、重新配置私有源
背景:
切换私有源提示:
npm ERR! code E401
npm ERR! Unable to authenticate, need: BASIC realm="Sonatype Nexus Repository Manager"
解决方法:
1、输入 npm config list 获取 npm 配置
2、找到 userconfig 一项
3、打开 .npmrc 文件
4、删除已配置的私有源地址和 NpmToken
5、重新配置私有源
本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。