Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

jspm install 404s on some packages consistently #867

Closed
henrahmagix opened this issue Jun 23, 2015 · 10 comments
Closed

jspm install 404s on some packages consistently #867

henrahmagix opened this issue Jun 23, 2015 · 10 comments

Comments

@henrahmagix
Copy link

Here's the (long, sorry) output of jspm install that's been very similar for the past hour.

I have authenticated with GitHub but unchecked all of the permission options for the token. Are there any particular permissions I need to allow?

jspm@0.15.7

     Looking up npm:font-awesome
     Updating registry cache...
     Looking up github:aurelia/dependency-injection
     Looking up github:aurelia/animator-css
     Looking up github:systemjs/plugin-css
     Looking up github:aurelia/framework
     Looking up github:aurelia/router
     Looking up github:twbs/bootstrap
     Looking up github:aurelia/http-client
     Looking up github:aurelia/bootstrapper
ok   Installed github:aurelia/dependency-injection@^0.8.1 (0.8.1)
     Looking up npm:core-js
     Looking up npm:clean-css
ok   Installed github:aurelia/framework@^0.12.0 (0.12.0)
ok   Installed github:aurelia/router@^0.9.0 (0.9.0)
ok   Installed github:systemjs/plugin-css@0.1 (0.1.12)
     Looking up github:aurelia/binding
     Looking up github:aurelia/metadata
     Looking up github:aurelia/task-queue
     Looking up github:aurelia/path
     Looking up github:aurelia/logging
     Looking up github:jspm/nodelibs-path
     Looking up github:aurelia/templating-resources
     Looking up github:jspm/nodelibs-fs
     Looking up github:aurelia/templating-binding
     Looking up github:aurelia/loader-default
     Looking up github:aurelia/templating-router
     Looking up github:aurelia/history-browser
     Looking up github:aurelia/history
     Looking up github:aurelia/loader
     Looking up github:aurelia/templating
     Looking up github:aurelia/logging-console
     Looking up github:aurelia/route-recognizer
     Looking up github:aurelia/event-aggregator
ok   Installed npm:clean-css@~3.1.8 (3.1.9)
     Looking up npm:commander
     Looking up npm:source-map
ok   Installed github:aurelia/logging@^0.5.0 (0.5.0)
ok   Installed github:aurelia/path@^0.7.0 (0.7.0)
ok   Installed github:aurelia/metadata@^0.6.0 (0.6.0)
ok   Installed github:aurelia/task-queue@^0.5.0 (0.5.0)
ok   Installed github:aurelia/templating-binding@^0.12.0 (0.12.0)
ok   Installed github:jspm/nodelibs-fs@^0.1.1 (0.1.2)
ok   Installed github:aurelia/logging-console@^0.5.0 (0.5.0)
ok   Installed github:aurelia/binding@^0.7.0 (0.7.1)
ok   Installed github:aurelia/templating@^0.12.0 (0.12.1)
ok   Installed github:aurelia/templating-resources@^0.12.0 (0.12.1)
ok   Installed github:aurelia/loader@^0.7.0 (0.7.0)
ok   Installed github:aurelia/route-recognizer@^0.5.0 (0.5.0)
ok   Installed github:aurelia/history-browser@^0.5.0 (0.5.0)
ok   Installed github:jspm/nodelibs-path@^0.1.0 (0.1.0)
ok   Installed github:aurelia/event-aggregator@^0.5.0 (0.5.0)
     Looking up npm:path-browserify
ok   Installed github:aurelia/templating-router@^0.13.0 (0.13.0)
ok   Installed github:aurelia/history@^0.5.0 (0.5.0)
ok   Installed github:aurelia/loader-default@^0.8.0 (0.8.0)
     Looking up github:jspm/nodelibs-http
ok   Installed npm:commander@~2.6.0 (2.6.0)
     Looking up github:jspm/nodelibs-https
     Looking up github:jspm/nodelibs-util
ok   Installed npm:source-map@~0.1.43 (0.1.43)
     Looking up github:jspm/nodelibs-os
     Looking up npm:amdefine
     Looking up github:jspm/nodelibs-buffer
     Looking up github:jspm/nodelibs-process
     Looking up github:jspm/nodelibs-url
ok   Installed npm:core-js@^0.9.5 (0.9.15)
ok   Installed github:jspm/nodelibs-fs@^0.1.0 (0.1.2)
     Looking up github:aurelia/html-template-element
ok   Installed npm:path-browserify@0.0.0 (0.0.0)
ok   Installed npm:amdefine (0.1.1)
     Looking up github:jspm/nodelibs-events
     Looking up github:webcomponents/webcomponentsjs
     Looking up github:jspm/nodelibs-child_process
     Downloading github:twbs/bootstrap@3.3.4
     Downloading github:jspm/nodelibs-http@1.7.1
     Looking up github:systemjs/plugin-json
     Downloading github:jspm/nodelibs-url@0.1.0
     Downloading github:jspm/nodelibs-buffer@0.1.0
     Downloading github:jspm/nodelibs-os@0.1.0
     Downloading github:jspm/nodelibs-util@0.1.0
     Downloading github:jspm/nodelibs-https@0.1.0
     Downloading github:jspm/nodelibs-process@0.1.1
     Looking up github:jspm/nodelibs-module
     Downloading github:aurelia/html-template-element@0.2.0
     Downloading github:jspm/nodelibs-events@0.1.1
     Looking up npm:buffer
     Looking up npm:Base64
     Looking up npm:inherits
     Looking up npm:url
ok   Installed github:jspm/nodelibs-child_process@^0.1.0 (0.1.0)
     Looking up npm:util
     Looking up npm:os-browserify
     Looking up npm:https-browserify
     Looking up npm:process
     Downloading github:webcomponents/webcomponentsjs@0.6.3
     Downloading github:systemjs/plugin-json@0.1.0
ok   Installed npm:inherits@~2.0.1 (2.0.1)
ok   Installed npm:url@^0.10.1 (0.10.3)
     Looking up npm:punycode
     Looking up npm:querystring
ok   Installed npm:Base64@~0.2.0 (0.2.1)

warn Error on download for github:jspm/nodelibs-url, retrying (1).
     Bad response code 404

warn Error on download for github:jspm/nodelibs-buffer, retrying (1).
     Bad response code 404

warn Error on download for github:jspm/nodelibs-util, retrying (1).
     Bad response code 404
     Looking up github:components/jquery
     Looking up npm:events

warn Error on download for github:jspm/nodelibs-process, retrying (1).
     Bad response code 404
     Downloading github:jspm/nodelibs-module@0.1.0

warn Error on download for github:jspm/nodelibs-os, retrying (1).
     Bad response code 404
ok   Installed npm:https-browserify@0.0.0 (0.0.0)
ok   Installed npm:process@^0.10.0 (0.10.1)
ok   Installed npm:os-browserify@^0.1.2 (0.1.2)

warn Error on download for github:jspm/nodelibs-https, retrying (1).
     Bad response code 404

warn Error on download for github:jspm/nodelibs-http, retrying (1).
     Bad response code 404
ok   Installed npm:buffer@^3.0.1 (3.2.2)
     Looking up npm:base64-js
     Looking up npm:ieee754
     Looking up npm:is-array
ok   Installed npm:util@^0.10.3 (0.10.3)
     Looking up github:jspm/nodelibs-assert
ok   Installed npm:punycode@1.3.2 (1.3.2)
ok   Installed npm:querystring@0.2.0 (0.2.0)

warn Error on download for github:aurelia/html-template-element, retrying (1).
     Bad response code 404

warn Error on download for github:jspm/nodelibs-events, retrying (1).
     Bad response code 404
ok   Installed npm:events@1.0.2 (1.0.2)
ok   Installed npm:ieee754@^1.1.4 (1.1.5)
ok   Installed npm:is-array@^1.0.1 (1.0.1)

warn Error on download for github:systemjs/plugin-json, retrying (1).
     Bad response code 404

warn Error on download for github:webcomponents/webcomponentsjs, retrying (1).
     Bad response code 404
ok   Installed npm:base64-js@0.0.8 (0.0.8)

warn Error on download for github:jspm/nodelibs-url, retrying (2).
     Bad response code 404
     Downloading github:components/jquery@2.1.4

warn Error on download for github:jspm/nodelibs-util, retrying (2).
     Bad response code 404
     Downloading github:jspm/nodelibs-assert@0.1.0

warn Error on download for github:jspm/nodelibs-buffer, retrying (2).
     Bad response code 404

warn Error on download for github:jspm/nodelibs-os, retrying (2).
     Bad response code 404

warn Error on download for github:jspm/nodelibs-module, retrying (1).
     Bad response code 404

warn Error on download for github:jspm/nodelibs-process, retrying (2).
     Bad response code 404

warn Error on download for github:jspm/nodelibs-https, retrying (2).
     Bad response code 404

warn Error on download for github:jspm/nodelibs-http, retrying (2).
     Bad response code 404

warn Error on download for github:aurelia/html-template-element, retrying (2).
     Bad response code 404

warn Error on download for github:jspm/nodelibs-events, retrying (2).
     Bad response code 404
     Looking up npm:assert

warn Error on download for github:systemjs/plugin-json, retrying (2).
     Bad response code 404

warn Error on download for github:webcomponents/webcomponentsjs, retrying (2).
     Bad response code 404

warn Error on download for github:jspm/nodelibs-url, retrying (3).
     Bad response code 404

warn Error on download for github:jspm/nodelibs-util, retrying (3).
     Bad response code 404

warn Error on download for github:components/jquery, retrying (1).
     Bad response code 404

warn Error on download for github:jspm/nodelibs-assert, retrying (1).
     Bad response code 404

warn Error on download for github:jspm/nodelibs-buffer, retrying (3).
     Bad response code 404
ok   Installed npm:assert@^1.3.0 (1.3.0)

warn Error on download for github:jspm/nodelibs-os, retrying (3).
     Bad response code 404

warn Error on download for github:jspm/nodelibs-process, retrying (3).
     Bad response code 404

warn Error on download for github:jspm/nodelibs-module, retrying (2).
     Bad response code 404

warn Error on download for github:jspm/nodelibs-https, retrying (3).
     Bad response code 404

warn Error on download for github:jspm/nodelibs-http, retrying (3).
     Bad response code 404

warn Error on download for github:aurelia/html-template-element, retrying (3).
     Bad response code 404

warn Error on download for github:jspm/nodelibs-events, retrying (3).
     Bad response code 404

warn Error on download for github:systemjs/plugin-json, retrying (3).
     Bad response code 404

warn Error on download for github:webcomponents/webcomponentsjs, retrying (3).
     Bad response code 404

warn Error on download for github:jspm/nodelibs-util
     Bad response code 404

err  Error downloading github:jspm/nodelibs-util.

warn Installation changes not saved.
jspm_packages/
├── github
|   ├── aurelia
│   │    ├── animator-css@0.3.2
│   │    ├── binding@0.7.1
│   │    ├── bootstrapper@0.13.1
│   │    ├── dependency-injection@0.8.1
│   │    ├── event-aggregator@0.5.0
│   │    ├── framework@0.12.0
│   │    ├── history-browser@0.5.0
│   │    ├── history@0.5.0
│   │    ├── http-client@0.9.1
│   │    ├── loader-default@0.8.0
│   │    ├── loader@0.7.0
│   │    ├── logging-console@0.5.0
│   │    ├── logging@0.5.0
│   │    ├── metadata@0.6.0
│   │    ├── path@0.7.0
│   │    ├── route-recognizer@0.5.0
│   │    ├── router@0.9.0
│   │    ├── task-queue@0.5.0
│   │    ├── templating-binding@0.12.0
│   │    ├── templating-resources@0.12.1
│   │    ├── templating-router@0.13.0
│   │    └── templating@0.12.1
|   ├── jspm
│   │    ├── nodelibs-child_process@0.1.0
│   │    ├── nodelibs-fs@0.1.2
│   │    └── nodelibs-path@0.1.0
|   └── systemjs
|       └── plugin-css@0.1.12
└── npm
    ├── Base64@0.2.1
    ├── amdefine@0.1.1
    ├── assert@1.3.0
    ├── base64-js@0.0.8
    ├── buffer@3.2.2
    ├── clean-css@3.1.9
    ├── commander@2.6.0
    ├── core-js@0.9.15
    ├── events@1.0.2
    ├── font-awesome@4.3.0
    ├── https-browserify@0.0.0
    ├── ieee754@1.1.5
    ├── inherits@2.0.1
    ├── is-array@1.0.1
    ├── os-browserify@0.1.2
    ├── path-browserify@0.0.0
    ├── process@0.10.1
    ├── punycode@1.3.2
    ├── querystring@0.2.0
    ├── source-map@0.1.43
    ├── url@0.10.3
    └── util@0.10.3
@henrahmagix
Copy link
Author

The project this is being run in is https://github.com/aurelia/skeleton-navigation with the dependencies:

  "jspm": {
    "dependencies": {
      "aurelia-animator-css": "github:aurelia/animator-css@^0.3.0",
      "aurelia-bootstrapper": "github:aurelia/bootstrapper@^0.13.0",
      "aurelia-dependency-injection": "github:aurelia/dependency-injection@^0.8.1",
      "aurelia-framework": "github:aurelia/framework@^0.12.0",
      "aurelia-http-client": "github:aurelia/http-client@^0.9.1",
      "aurelia-router": "github:aurelia/router@^0.9.0",
      "bootstrap": "github:twbs/bootstrap@^3.3.4",
      "css": "github:systemjs/plugin-css@^0.1.11",
      "font-awesome": "npm:font-awesome@^4.3.0"
    },
    "devDependencies": {
      "babel": "npm:babel-core@^5.1.13",
      "babel-runtime": "npm:babel-runtime@^5.1.13",
      "core-js": "npm:core-js@^0.9.4"
    }
  }

@guybedford
Copy link
Member

Does it work if you re-enable all the permissions?

It calls the API to check for releases, and then expects to be able to download the tarball. It sounds like it is one of those that is the issue.

@henrahmagix
Copy link
Author

Testing confirms it needs public_repo at the minimum. Is that on GitHub's side: do they rate-limit an auth token if it doesn't have repository write access? The log output and its timing was very similar to the rate-limit messages you get before creating a config with an auth token.

It'd be great to have in the README or somewhere visible that there's a requirement of public_repo for an auth token to work. I found one reference but it's in the docs and not very visible: /docs/registries.md#L110

Thanks =)

@guybedford
Copy link
Member

Good point - I've added jspm/github@4a4bc0e, which should be more useful.

@henrahmagix
Copy link
Author

Thanks!

@Mobiletainment
Copy link

For me, the only thing that really helped was referencing the packages from NPM instead of GitHub.
And even though a few are still loaded from GitHub, the error doesn't occur anymore.

@OrKoN
Copy link
Contributor

OrKoN commented Nov 15, 2016

I am experiencing the same problem right now (404 on certain packages, 0.16.x branch)

@timfish
Copy link

timfish commented Aug 9, 2017

I regularly get CI build build failures on 0.16.x for plugin-css:

err  Error downloading github:systemjs/plugin-css.

@guybedford
Copy link
Member

@timfish I wonder if this is due to git API rate limiting or something similar. Have you tried inlining git credentials into the CI process?

@mkarmona
Copy link

it was also happening to me as well. I had to migrate a old code from circle to travis and I was getting this annoying problem.

yarn run v1.13.0
$ ./node_modules/.bin/jspm install
     Looking up npm:babel-core
     Creating registry cache...
     Looking up github:systemjs/plugin-css
     Downloading npm:babel-core@5.8.38
     Downloading github:systemjs/plugin-css@0.1.21
warn Error on download for github:systemjs/plugin-css
     Bad response code 404
err  Error downloading github:systemjs/plugin-css.
warn Installation changes not saved.

I also applied the fix for the github requests quota but to finally solve this issue you have to check the last comment for that fix as your enabled token must have public repo access enabled.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants