Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot find module 'promised-io' #13

Open
balupton opened this issue Mar 25, 2011 · 4 comments
Open

Cannot find module 'promised-io' #13

balupton opened this issue Mar 25, 2011 · 4 comments

Comments

@balupton
Copy link

Doing require('promised-io') causes the following error:

node.js:116
                throw e; // process.nextTick error, or 'error' event on first tick
                ^
Error: Cannot find module 'promised-io'
        at Function._resolveFilename (module.js:296:11)
        at Function._load (module.js:242:25)
        at require (module.js:324:19)
        at Object.<anonymous> (/usr/local/lib/node/.npm/pulverizr/0.5.1/package/lib/tasks.js:3:15)
        at Module._compile (module.js:380:26)
        at Object..js (module.js:386:10)
        at Module.load (module.js:312:31)
        at Function._load (module.js:273:12)
        at require (module.js:324:19)
        at Object.<anonymous> (/usr/local/lib/node/.npm/pulverizr/0.5.1/package/lib/job.js:6:13)

It is installed via npm install promised-io

@anatoliychakkaev
Copy link

The same error for me too.

@balupton
Copy link
Author

balupton commented Apr 2, 2011

turns out you have to do: promise = require('promised-io/promise')

@ehynds
Copy link

ehynds commented May 28, 2011

Apparently promised-io doesn't have a main module, so you have to do promise = require('promised-io/lib/promise')

@balupton
Copy link
Author

@ehynds thanks mate, yours is now the proper solution

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants