dominictarr / npmd

MIT License
449 stars 37 forks source link

cannot install engine.io-stream #40

Open dominictarr opened 11 years ago

dominictarr commented 11 years ago

the output looks like this:

GET http://github.com/component/emitter/archive/1.0.1.tar.gz
GET https://github.com/LearnBoost/node-XMLHttpRequest/archive/0f36d0b5ebc03d85f860d42a64ae9791e1daa433.tar.gz
GET https://github.com/component/has-cors/archive/v1.0.2.tar.gz
GET https://github.com/component/global/archive/v2.0.1.tar.gz
xmlhttprequest@99b8642ec7dcb8cc75e490a97ec6b93ebbcbd432
has-cors@d88a8301bd678d95072ec6328218a79daa09685d
emitter@d387d8a5b573c8ab4f62b21a27ac375ca06f47f6
global@3e92796abce07d9849ac4772f3af017589f9253c
GET https://github.com/component/global/archive/v2.0.1.tar.gz
global@3e92796abce07d9849ac4772f3af017589f9253c
/home/dominic/.npm/indexof/0.0.1/package.tgz
/home/dominic/.npm/options/0.0.5/package.tgz
/home/dominic/.npm/tinycolor/0.0.1/package.tgz
/home/dominic/.npm/options/0.0.5/package.tgz
/home/dominic/.npm/nan/0.3.2/package.tgz
/home/dominic/.npm/nan/0.3.2/package.tgz
/home/dominic/.npm/commander/0.6.1/package.tgz
/home/dominic/.npm/global/2.0.1/package.tgz
/home/dominic/.npm/tinycolor/0.0.1/package.tgz
/home/dominic/.npm/commander/0.6.1/package.tgz
/home/dominic/.npm/debug/0.7.2/package.tgz
/home/dominic/.npm/engine.io-parser/0.3.0/package.tgz
/home/dominic/.npm/indexof/0.0.1/package.tgz
/home/dominic/.npm/has-cors/1.0.2/package.tgz
/home/dominic/.npm/emitter/1.0.1/package.tgz
/home/dominic/.npm/xmlhttprequest/1.5.0/package.tgz
/home/dominic/.npm/ws/0.4.31/package.tgz
/home/dominic/.npm/global/2.0.1/package.tgz
/home/dominic/.npm/engine.io-parser/0.3.0/package.tgz
/home/dominic/.npm/base64id/0.1.0/package.tgz
/home/dominic/.npm/ws/0.4.31/package.tgz
/home/dominic/.npm/engine.io-stream/0.4.2/package.tgz
/home/dominic/.npm/debug/0.6.0/package.tgz
/home/dominic/.npm/engine.io-client/0.7.12/package.tgz
/home/dominic/.npm/engine.io/0.7.12/package.tgz
URL http://isaacs.iriscouch.com/registry/global/global-2.0.1.tgz
URL http://isaacs.iriscouch.com/registry/global/global-2.0.1.tgz
URL http://isaacs.iriscouch.com/registry/engine.io-stream/engine.io-stream-0.4.2.tgz
WARN! expected emitter@1.0.1 to have shasum=undefined

/home/dominic/.npmd/lib/node_modules/npmd/index.js:128
      if(err) throw err
                    ^
Error: incorrect header check
 trying to unpack emitter@1.0.1
    at Zlib._binding.onerror (zlib.js:295:17)

npmd resolve looks like this...

GET http://github.com/component/emitter/archive/1.0.1.tar.gz
GET https://github.com/LearnBoost/node-XMLHttpRequest/archive/0f36d0b5ebc03d85f860d42a64ae9791e1daa433.tar.gz
GET https://github.com/component/has-cors/archive/v1.0.2.tar.gz
GET https://github.com/component/global/archive/v2.0.1.tar.gz
has-cors@d88a8301bd678d95072ec6328218a79daa09685d
xmlhttprequest@99b8642ec7dcb8cc75e490a97ec6b93ebbcbd432
emitter@d387d8a5b573c8ab4f62b21a27ac375ca06f47f6
global@3e92796abce07d9849ac4772f3af017589f9253c
GET https://github.com/component/global/archive/v2.0.1.tar.gz
global@3e92796abce07d9849ac4772f3af017589f9253c
{
  "name": "engine.io-stream",
  "version": "0.4.2",
  "shasum": "f486e4b93465273c4aae1265811d0e823ffef8be",
  "dependencies": {
    "engine.io": {
      "name": "engine.io",
      "version": "0.7.12",
      "shasum": "da5dc89ede39bbcdf139ac14285ce589a4d068b6",
      "from": "0.7.12",
      "dependencies": {
        "debug": {
          "name": "debug",
          "version": "0.6.0",
          "shasum": "ce9d5d025d5294b3f0748a494bebaf3c9fd8734f",
          "from": "0.6.0",
          "dependencies": {}
        },
        "ws": {
          "name": "ws",
          "version": "0.4.31",
          "shasum": "5a4849e7a9ccd1ed5a81aeb4847c9fedf3122927",
          "gypfile": true,
          "from": "0.4.31",
          "dependencies": {
            "commander": {
              "name": "commander",
              "version": "0.6.1",
              "shasum": "fa68a14f6a945d54dbbe50d8cdb3320e9e3b1a06",
              "from": "~0.6.1",
              "dependencies": {}
            },
            "nan": {
              "name": "nan",
              "version": "0.3.2",
              "shasum": "0df1935cab15369075ef160ad2894107aa14dc2d",
              "from": "~0.3.0",
              "dependencies": {}
            },
            "tinycolor": {
              "name": "tinycolor",
              "version": "0.0.1",
              "shasum": "320b5a52d83abb5978d81a3e887d4aefb15a6164",
              "from": "0.x",
              "dependencies": {}
            },
            "options": {
              "name": "options",
              "version": "0.0.5",
              "shasum": "9a3806378f316536d79038038ba90ccb724816c3",
              "from": ">=0.0.5",
              "dependencies": {}
            }
          }
        },
        "engine.io-parser": {
          "name": "engine.io-parser",
          "version": "0.3.0",
          "shasum": "67fa40dbbc4ae01b51ddaada7deaf75eca2c5061",
          "from": "0.3.0",
          "dependencies": {}
        },
        "base64id": {
          "name": "base64id",
          "version": "0.1.0",
          "shasum": "02ce0fdeee0cef4f40080e1e73e834f0b1bfce3f",
          "from": "0.1.0",
          "dependencies": {}
        }
      }
    },
    "engine.io-client": {
      "name": "engine.io-client",
      "version": "0.7.12",
      "shasum": "1ae849531a42afb951509813c5d7c5283b137365",
      "from": "0.7.12",
      "dependencies": {
        "global": {
          "name": "global",
          "version": "2.0.1",
          "shasum": "3e92796abce07d9849ac4772f3af017589f9253c",
          "from": "https://github.com/component/global/archive/v2.0.1.tar.gz",
          "dependencies": {}
        },
        "has-cors": {
          "name": "has-cors",
          "version": "1.0.2",
          "shasum": "d88a8301bd678d95072ec6328218a79daa09685d",
          "from": "https://github.com/component/has-cors/archive/v1.0.2.tar.gz",
          "dependencies": {
            "global": {
              "name": "global",
              "version": "2.0.1",
              "shasum": "3e92796abce07d9849ac4772f3af017589f9253c",
              "from": "https://github.com/component/global/archive/v2.0.1.tar.gz",
              "dependencies": {}
            }
          }
        },
        "ws": {
          "name": "ws",
          "version": "0.4.31",
          "shasum": "5a4849e7a9ccd1ed5a81aeb4847c9fedf3122927",
          "gypfile": true,
          "from": "0.4.31",
          "dependencies": {
            "commander": {
              "name": "commander",
              "version": "0.6.1",
              "shasum": "fa68a14f6a945d54dbbe50d8cdb3320e9e3b1a06",
              "from": "~0.6.1",
              "dependencies": {}
            },
            "nan": {
              "name": "nan",
              "version": "0.3.2",
              "shasum": "0df1935cab15369075ef160ad2894107aa14dc2d",
              "from": "~0.3.0",
              "dependencies": {}
            },
            "tinycolor": {
              "name": "tinycolor",
              "version": "0.0.1",
              "shasum": "320b5a52d83abb5978d81a3e887d4aefb15a6164",
              "from": "0.x",
              "dependencies": {}
            },
            "options": {
              "name": "options",
              "version": "0.0.5",
              "shasum": "9a3806378f316536d79038038ba90ccb724816c3",
              "from": ">=0.0.5",
              "dependencies": {}
            }
          }
        },
        "xmlhttprequest": {
          "name": "xmlhttprequest",
          "version": "1.5.0",
          "shasum": "99b8642ec7dcb8cc75e490a97ec6b93ebbcbd432",
          "from": "https://github.com/LearnBoost/node-XMLHttpRequest/archive/0f36d0b5ebc03d85f860d42a64ae9791e1daa433.tar.gz",
          "dependencies": {}
        },
        "emitter": {
          "name": "emitter",
          "version": "1.0.1",
          "shasum": "d387d8a5b573c8ab4f62b21a27ac375ca06f47f6",
          "from": "http://github.com/component/emitter/archive/1.0.1.tar.gz",
          "dependencies": {
            "indexof": {
              "name": "indexof",
              "version": "0.0.1",
              "shasum": "82dc336d232b9062179d05ab3293a66059fd435d",
              "from": "0.0.1",
              "dependencies": {}
            }
          }
        },
        "indexof": {
          "name": "indexof",
          "version": "0.0.1",
          "shasum": "82dc336d232b9062179d05ab3293a66059fd435d",
          "from": "0.0.1",
          "dependencies": {}
        },
        "engine.io-parser": {
          "name": "engine.io-parser",
          "version": "0.3.0",
          "shasum": "67fa40dbbc4ae01b51ddaada7deaf75eca2c5061",
          "from": "0.3.0",
          "dependencies": {}
        },
        "debug": {
          "name": "debug",
          "version": "0.7.2",
          "shasum": "056692c86670977f115de82917918b8e8b9a10f0",
          "from": "0.7.2",
          "dependencies": {}
        }
      }
    }
  }
}

curl for emitter...

curl http://github.com/component/emitter/archive/1.0.1.tar.gz -v
[dominic@COMPUTER reconnect-shoe]$ `p`
* Adding handle: conn: 0xcc6740
* Adding handle: send: 0
* Adding handle: recv: 0
* Curl_addHandleToPipeline: length: 1
* - Conn 0 (0xcc6740) send_pipe: 1, recv_pipe: 0
* About to connect() to github.com port 80 (#0)
*   Trying 192.30.252.129...
* Connected to github.com (192.30.252.129) port 80 (#0)
> GET /component/emitter/archive/1.0.1.tar.gz HTTP/1.1
> User-Agent: curl/7.33.0
> Host: github.com
> Accept: */*
> 
< HTTP/1.1 301 Moved Permanently
< Content-length: 0
< Location: https://github.com/component/emitter/archive/1.0.1.tar.gz
< Connection: close
< 
* Closing connection 0

AHA, it's just gotta follow redirects!