Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Dependencies (package.json): 406 with http/https #319

Closed

Description

@tststs

I don't know, if this is related to apm. If i'm using http/https for a repo in package.json, the result is always 406.

is:
package.json:

"dependencies": {
    "tern": "git://github.com/marijnh/tern.git",
  },

should:
package.json:

"dependencies": {
    "tern": "https://github.com/marijnh/tern.git",
  },

npm ERR! fetch failed https://github.com/marijnh/tern.git
npm WARN retry will retry, error on last attempt: Error: fetch failed with status code 406
npm ERR! fetch failed https://github.com/marijnh/tern.git
npm WARN retry will retry, error on last attempt: Error: fetch failed with status code 406
npm ERR! fetch failed https://github.com/marijnh/tern.git
npm ERR! Darwin 14.1.0
npm ERR! argv "/Applications/Atom.app/Contents/Resources/app/apm/bin/node" "/Applications/Atom.app/Contents/Resources/app/apm/node_modules/npm/bin/npm-cli.js" "--globalconfig" "/Users/tobiasschubert/.atom/.apm/.apmrc" "--userconfig" "/Users/tobiasschubert/.atom/.apmrc" "install" "--target=0.21.0" "--arch=x64"
npm ERR! node v0.10.35
npm ERR! npm v2.5.1

npm ERR! fetch failed with status code 406
npm ERR!

Activity

  1. changed the title [-]406 with http/https[/-] [+]Dependencies (package.json): 406 with http/https[/+] on Mar 10, 2015
  2. thedaniel commented on Mar 10, 2015

    @thedaniel
    Contributor

    I'm pretty sure you need to drop the .git from the end of the https url

  3. izuzak commented on Mar 10, 2015

    @izuzak
    Contributor

    This also sounds very similar to an npm issue: npm/npm#7560

    Can you install any npm packages with npm install?

  4. tststs commented on Mar 11, 2015

    @tststs
    Author

    Seems to be a problem with node 0.12.0. I'm not able to install any package via https.
    I also tried to remove everything related to node and npmand made a fresh install with brew. Still a 406 with apm and npm.

  5. bdefore commented on Mar 20, 2015

    @bdefore

    I'm also having this issue with node 0.12.

  6. izuzak commented on Mar 21, 2015

    @izuzak
    Contributor

    @bdefore @tststs Interesting -- thanks for posting updates here. So you can't reproduce this with node 0.10.x? Also, which OS are you using?

  7. bdefore commented on Mar 21, 2015

    @bdefore

    @izuzak I'm using nvm on OSX 10.10.1 and with a package.json of:

    {
      "devDependencies": {
        "react-paginate": "https://github.com/bdefore/react-paginate"
      }
    }
    

    I get this output from node 0.12 and then 0.10: https://gist.github.com/bdefore/067b7372ad8406f35006

  8. izuzak commented on Mar 22, 2015

    @izuzak
    Contributor

    @bdefore The error you got for the 0.10.x case doesn't look like the 406, but something else. So, using Node 0.10.x for now should help for now. Also, might be worth reporting this over to npm or node, since npm install is failing -- what do you think?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions