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

Unable to install from github repo when specified in package.json, err 406 #7630

@bitinn

Description

@bitinn

I am seeing this generic 406 error consistently on a particular iMac in our network. Other machines in the same network with the same io.js (v1.5.1) doesn't appear to be affected by this problem.

But where does ERR 406 comes from, that iMac can access https://github.com/bitinn/onchange#gaze just fine. And it can install other npm package just fine.

I tried to reinstall io.js with .pkg but issue persists. What could have cause this?

npm info retry fetch attempt 3 at 00:11:57
npm info attempt registry request try #1 at 00:11:57
npm http fetch GET https://github.com/bitinn/onchange#gaze
npm http fetch 406 https://github.com/bitinn/onchange#gaze
npm ERR! fetch failed https://github.com/bitinn/onchange#gaze
npm verb stack Error: fetch failed with status code 406
npm verb stack     at Request.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/npm-registry-client/lib/fetch.js:55:14)
npm verb stack     at emitOne (events.js:77:13)
npm verb stack     at Request.emit (events.js:166:7)
npm verb stack     at Request.onRequestResponse (/usr/local/lib/node_modules/npm/node_modules/request/request.js:1176:10)
npm verb stack     at emitOne (events.js:77:13)
npm verb stack     at ClientRequest.emit (events.js:166:7)
npm verb stack     at HTTPParser.parserOnIncomingClient [as onIncoming] (_http_client.js:410:21)
npm verb stack     at HTTPParser.parserOnHeadersComplete (_http_common.js:88:23)
npm verb stack     at TLSSocket.socketOnData (_http_client.js:300:20)
npm verb stack     at emitOne (events.js:77:13)
npm verb cwd /Users/teambegin/git/dudao
npm ERR! Darwin 14.1.0
npm ERR! argv "node" "/usr/local/bin/npm" "install" "--node-gyp=pangyp" "--verbose"
npm ERR! node v1.5.1
npm ERR! npm  v2.7.0

npm ERR! fetch failed with status code 406
npm ERR! 
npm ERR! If you need help, you may report this error at:
npm ERR!     <http://github.com/npm/npm/issues>
npm verb exit [ 1, true ]

npm ERR! Please include the following file with any support request:
npm ERR!     /Users/teambegin/git/dudao/npm-debug.log

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions