我正在尝试安装 jspm deps,但每次运行 jspm install 时都会遇到问题
得到这样的错误
warn Error on download for github:jspm/nodelibs-process
Unauthorized response for GitHub API.
Use jspm registry config github to reconfigure the credentials, or update them in your ~/.netrc file.
warn Error on getPackageConfig for github:jspm/nodelibs-path
Unauthorized response for GitHub API.
Use jspm registry config github to reconfigure the credentials, or update them in your ~/.netrc file.
对于其他包也有同样的错误,注意到有时我无法下载不同的包。
Docker image node 8.11.2
jspm 0.16.55
我已经设置
jspm config registries.github.auth $(echo -n "${GITHUB_USERNAME}:${GITHUB_API_KEY}" | base64)
cat ~/.jspm/config 显示一切正常
{
"defaultRegistry": "npm",
"registries": {
"github": {
"auth": "mybase64credentials",
"handler": "jspm-github",
"remote": "https://github.jspm.io",
"maxRepoSize": 100
},
"npm": {
"handler": "jspm-npm",
"remote": "https://npm.jspm.io"
},
"jspm": {
"handler": "jspm-registry",
"remote": "https://registry.jspm.io"
}
},
"defaultTranspiler": "babel",
"strictSSL": true
}
我还在 github 令牌设置中设置了具有 public_repo 权限的 GITHUB_API_KEY 。
因此,传递给 github 的凭据似乎有问题,我试图找出问题所在,但只是浪费了我的时间(看起来以前没有人遇到过)有人可以帮助我吗?