【问题标题】:Azure Artifacts updating credentials with vsts-npm-authAzure Artifacts 使用 vsts-npm-auth 更新凭据
【发布时间】:2021-06-30 15:51:42
【问题描述】:

我尝试更新我的天蓝色工件并收到下一个错误:

npm ERR! code E401
npm ERR! Unable to authenticate, need: Basic realm="https://pkgsprodsbr1.app.pkgs.visualstudio.com/"

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\jicar\AppData\Roaming\npm-cache\_logs\2021-06-30T14_59_55_304Z-debug.log  

尝试重新生成我的凭据并收到:

vsts-npm-auth v0.41.0.0
-----------------------
The input is not a valid Base-64 string as it contains a non-base 64 character, more than two padding characters, or an illegal character among the padding characters.

我的 .npmrc 文件包含来自 azure 的准确(复制粘贴)。 npmrc-file

有什么想法吗??????

【问题讨论】:

    标签: azure npm azure-devops azure-artifacts .npmrc


    【解决方案1】:

    好的,伙计们,在尝试了几个小时不同的事情之后,我将我的网址修改为

    registry=https://pkgs.dev.azure.com/sisorg/Agilis.Common/_packaging/agilis-common/npm/registry
    

    没有最后一个斜杠 (/),即使在 azure 面板中它显示它WITH 斜杠..

    【讨论】:

    • 感谢@Juan,这正是问题所在,但之前工作正常
    猜你喜欢
    • 2017-10-06
    • 2020-02-26
    • 2022-12-22
    • 2021-05-18
    • 1970-01-01
    • 2018-09-12
    • 2021-01-15
    • 2019-12-04
    • 1970-01-01
    相关资源
    最近更新 更多