0

我的~/.npmrc样子

% cat ~/.npmrc
//npm.pkg.github.com/:_authToken=XXXXXXX
//npmjs.org=true
@1uphealth:registry=https://npm.pkg.github.com/1uphealth

从理论上讲,我们的软件包就像@1uphealth/foobar从我们的私有github packages存储库中安装的一样,这适用于npm

它似乎也与 pnpm 文档相匹配,在这里https://pnpm.io/npmrc#url_authtoken

但是我收到了这个错误,

 ERR_PNPM_FETCH_401  GET https://npm.pkg.github.com/1uphealth/@1uphealth%2Fcore-1upenv-script: Unauthorized - 401

No authorization header was set for the request.

These authorization settings were found:
//npm.pkg.github.com/:_authToken=[hidden]
@1uphealth:registry=https://npm.pkg.github.com/1uphealth
4

0 回答 0