JSPM install issues in docker node 8 – Unauthorized response for GitHub API

Published

I’m trying to install jspm deps but face with issues every time I run jspm install

got such errors as

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.

also for other packages got the same error, noticed that sometimes I’m not able to download different packages.

Docker image node 8.11.2
jspm 0.16.55

I’ve setup

jspm config registries.github.auth $(echo -n "${GITHUB_USERNAME}:${GITHUB_API_KEY}" | base64)

cat ~/.jspm/config shows that everything is fine

{
  "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
}

also I set up GITHUB_API_KEY with public_repo permissions in github token settings.

So seems something wrong with credentials passing to github, I tried to find out what’s wrong but only wasted my time(looks like no one faced with that before) could someone please help me?

Source: Docker Questions

Published
Categorised as docker, github, jspm, node8.2 Tagged , , ,

Answers

Leave a Reply

Still Have Questions?


Our dedicated development team is here for you!

We can help you find answers to your question for as low as 5$.

Contact Us
faq