背景:
切換私有源提示:
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刪除。