dominictarr / npmd

MIT License
450 stars 37 forks source link

Invalid protocol: git+http: #86

Open binarykitchen opened 9 years ago

binarykitchen commented 9 years ago

I see this error when running npmd install (but it does not happen on npm install):

$ npmd install
GET https://registry.npmjs.org/express
GET https://registry.npmjs.org/nodemailer
GET https://registry.npmjs.org/chai
GET https://registry.npmjs.org/gulp-spawn-mocha

/opt/node-0.10.36/lib/node_modules/npmd/index.js:95
    if(err) throw err
                  ^
Error: package: pm2@0.12.6 could not resolve ikt@git+http://ikt.pm2.io/ikt.git#master
Invalid protocol: git+http:
    at Request.init (/opt/node-0.10.36/lib/node_modules/npmd/node_modules/npmd-cache/node_modules/request/request.js:591:31)
    at new Request (/opt/node-0.10.36/lib/node_modules/npmd/node_modules/npmd-cache/node_modules/request/request.js:264:8)
    at request (/opt/node-0.10.36/lib/node_modules/npmd/node_modules/npmd-cache/node_modules/request/index.js:50:10)
    at cache.getter (/opt/node-0.10.36/lib/node_modules/npmd/node_modules/npmd-cache/index.js:73:9)
    at fetch (/opt/node-0.10.36/lib/node_modules/npmd/node_modules/npmd-cache/node_modules/level-content-cache/index.js:108:7)
    at /opt/node-0.10.36/lib/node_modules/npmd/node_modules/npmd-cache/node_modules/level-content-cache/index.js:79:9
    at dispatchError (/opt/node-0.10.36/lib/node_modules/npmd/node_modules/levelup/lib/util.js:131:7)
    at /opt/node-0.10.36/lib/node_modules/npmd/node_modules/levelup/lib/levelup.js:197:14
    at /opt/node-0.10.36/lib/node_modules/npmd/node_modules/medeadown/medeadown.js:125:5
    at Medea.get (/opt/node-0.10.36/lib/node_modules/npmd/node_modules/medeadown/node_modules/medea/medea.js:472:13)

Not sure what it is, but I wonder if npmd is able to resolve protocols like git+http?