error message instead of stack trace when missing dependencies #2

Closed
aeosynth opened this Issue Sep 8, 2012 · 12 comments

Comments

Projects
None yet
5 participants
@aeosynth

aeosynth commented Sep 8, 2012

$ bower info octo

events.js:66
        throw arguments[1]; // Unhandled 'error' event
                       ^
Error: superagent not found
    at Request.exports.lookup [as _callback] (/usr/local/lib/node_modules/bower/lib/core/source.js:16:68)
    at Request.init.self.callback (/usr/local/lib/node_modules/bower/node_modules/request/main.js:122:22)
    at Request.EventEmitter.emit (events.js:91:17)
    at Request.<anonymous> (/usr/local/lib/node_modules/bower/node_modules/request/main.js:654:16)
    at Request.EventEmitter.emit (events.js:115:20)
    at IncomingMessage.Request.start.self.req.self.httpModule.request.buffer (/usr/local/lib/node_modules/bower/node_modules/request/main.js:616:14)
    at IncomingMessage.EventEmitter.emit (events.js:115:20)
    at IncomingMessage._emitEnd (http.js:366:10)
    at HTTPParser.parserOnMessageComplete [as onMessageComplete] (http.js:149:23)
    at CleartextStream.socketOnData [as ondata] (http.js:1366:20)

edit: superagent is a dependency listed in octo's component.json

@Caged

This comment has been minimized.

Show comment Hide comment
@Caged

Caged Sep 10, 2012

It turns out superagent has a components.json file, but won't support bower install. See visionmedia/superagent@996cbfe#commitcomment-1824833

Is there a proper way to link to non-bower dependencies?

Caged commented Sep 10, 2012

It turns out superagent has a components.json file, but won't support bower install. See visionmedia/superagent@996cbfe#commitcomment-1824833

Is there a proper way to link to non-bower dependencies?

@aeosynth

This comment has been minimized.

Show comment Hide comment
@aeosynth

aeosynth Sep 10, 2012

Linking the exact http url works.

Linking the exact http url works.

@Caged

This comment has been minimized.

Show comment Hide comment
@Caged

Caged Sep 10, 2012

@aeosynth Updated. It should work now.

Caged commented Sep 10, 2012

@aeosynth Updated. It should work now.

@aeosynth

This comment has been minimized.

Show comment Hide comment
@aeosynth

aeosynth Sep 10, 2012

it works, although i had to manually delete octo from my bower cache.

this issue is still valid - bower should show a nice error message eg, "Error: cannot find dependencies", instead of a scary stack trace.

it works, although i had to manually delete octo from my bower cache.

this issue is still valid - bower should show a nice error message eg, "Error: cannot find dependencies", instead of a scary stack trace.

@Caged

This comment has been minimized.

Show comment Hide comment
@Caged

Caged Sep 10, 2012

it works, although i had to manually delete octo from my bower cache.

Maybe there needs to be a -f flag to force it to redownload a repository or be smarter about when to use the cache.

this issue is still valid - bower should show a nice error message eg, "Error: cannot find dependencies", instead of a scary stack trace.

It should also show me where it looked for those dependencies.

Caged commented Sep 10, 2012

it works, although i had to manually delete octo from my bower cache.

Maybe there needs to be a -f flag to force it to redownload a repository or be smarter about when to use the cache.

this issue is still valid - bower should show a nice error message eg, "Error: cannot find dependencies", instead of a scary stack trace.

It should also show me where it looked for those dependencies.

@aeosynth

This comment has been minimized.

Show comment Hide comment
@aeosynth

aeosynth Sep 10, 2012

It should also show me where it looked for those dependencies.

presumably it only looks in one place, the bower registry

It should also show me where it looked for those dependencies.

presumably it only looks in one place, the bower registry

@fat

This comment has been minimized.

Show comment Hide comment
@fat

fat Sep 13, 2012

Contributor

hmm… i can't reproduce this now :P

this is what i see: http://cl.ly/JRAV

Contributor

fat commented Sep 13, 2012

hmm… i can't reproduce this now :P

this is what i see: http://cl.ly/JRAV

@aeosynth

This comment has been minimized.

Show comment Hide comment
@aeosynth

aeosynth Sep 14, 2012

yeah works fine for me too, closing

yeah works fine for me too, closing

@aeosynth aeosynth closed this Sep 14, 2012

@carlituxman

This comment has been minimized.

Show comment Hide comment
@carlituxman

carlituxman Jan 10, 2013

when I do "bower install superagent"
have the error:
There where errors, here's a summary of them:

  • RedVentures/reduce RedVentures/reduce not found

when I do "bower install superagent"
have the error:
There where errors, here's a summary of them:

  • RedVentures/reduce RedVentures/reduce not found
@vendethiel

This comment has been minimized.

Show comment Hide comment
@vendethiel

vendethiel Jan 10, 2013

That's a visionmedia/component, not a bower one. It still needs to be registered on bower (dunno how to autolink user/repo name)

That's a visionmedia/component, not a bower one. It still needs to be registered on bower (dunno how to autolink user/repo name)

@carlituxman

This comment has been minimized.

Show comment Hide comment
@carlituxman

carlituxman Jan 10, 2013

Sorry but at http://heldr.github.com/bower-components/
it appears like a bower component

Sorry but at http://heldr.github.com/bower-components/
it appears like a bower component

@vendethiel

This comment has been minimized.

Show comment Hide comment
@vendethiel

vendethiel Jan 10, 2013

superagent is a compnent(1) component. The component.json file depends on another component ("RedVentures/reduce") which is also a component(1).
See this : visionmedia/superagent@996cbfe#commitcomment-1824833

superagent is a compnent(1) component. The component.json file depends on another component ("RedVentures/reduce") which is also a component(1).
See this : visionmedia/superagent@996cbfe#commitcomment-1824833

benmann added a commit that referenced this issue Apr 28, 2016

Fix build errors #2
Related to the change from git:// to https://

sheerun pushed a commit that referenced this issue Jun 10, 2016

Merge pull request #2 from badunk/find-readme
Quick fix for bowerJson.find() example

sheerun pushed a commit that referenced this issue Jun 10, 2016

sheerun pushed a commit that referenced this issue Jun 10, 2016

Merge pull request #2 from neoziro/fix-registry-search
Fix search in multiple registries

sheerun pushed a commit that referenced this issue Jun 10, 2016

Merge pull request #2 from redking/master
Endpoints with backslashes should be recognized as sources
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment