Skip to content
This repository has been archived by the owner on Jan 10, 2022. It is now read-only.

Error: Cannot find module 'hooks' #42

Closed
KnowledgeGarden opened this issue Jun 4, 2011 · 7 comments
Closed

Error: Cannot find module 'hooks' #42

KnowledgeGarden opened this issue Jun 4, 2011 · 7 comments

Comments

@KnowledgeGarden
Copy link

$ /usr/local/calipso$ node app

node.js:183
throw e; // process.nextTick error, or 'error' event on first tick
^
Error: Cannot find module 'hooks'
at Function._resolveFilename (module.js:322:11)
at Function._load (module.js:267:25)
at require (module.js:367:19)
at Object. (/usr/local/calipso/node_modules/mongoose/lib/mongoose/document.js:15:13)

That after doing an npm install in /calipso
I see a "hooks" file in other projects but not around node, npm, or calipso. What might I be missing?

Thanks
Jack

@cliftonc
Copy link
Owner

cliftonc commented Jun 6, 2011

Not sure - does it work if you manually install hooks? If so, I'll add it as an explicit dependency.

@KnowledgeGarden
Copy link
Author

Not sure either. What got calipso to finally work was to remove it
entirely and do a fresh install. Now it seems to work fine. No clue
what was going on. Probably less calipso, more me.

On Sun, Jun 5, 2011 at 11:56 PM, cliftonc
reply@reply.github.com
wrote:

Not sure - does it work if you manually install hooks?  If so, I'll add it as an explicit dependency.

Reply to this email directly or view it on GitHub:
#42 (comment)

@cliftonc
Copy link
Owner

cliftonc commented Jun 6, 2011

Cool, glad you got it working!

@cliftonc cliftonc closed this as completed Jun 6, 2011
@bowmanb
Copy link

bowmanb commented Jul 13, 2011

I ran into this by installing node from Ubuntu repositories and trying to 'npm install' calipso. This failed.

After downloading node from their website and compiling node and running 'npm install' on the same calipso instance, I got this error. As KnowledgeGarden mentioned, a clean install fixed the issue.

@flowforever
Copy link

I met this issue again , can anyone tell me , where can I download the hooks module ?

@cliftonc
Copy link
Owner

It's a bug in npm (i think - I haven't had time to dig into it), but basically an 'npm install -d' will install all the first level dependencies of calipso, but not the dependencies of the dependencies ...

It's a pain in the a*, but this is basically:

cd node_modules/mongoose
npm install -d

You have to do this for the other modules that have dependencies (hook.io, winston, connect-form etc.).

If there is a better way would be great to know what it is ...

@flowforever
Copy link

Thanks for your reply very much.

I have downloaded hooks.js https://github.com/bnoguchi/hooks-js file ,
then copy it to the 'node_modules' directory , it works very well now .

mongoose is really excellent , I love it very much .
在 2011-11-14 下午9:12,"Clifton Cunningham" <
reply@reply.github.com

写道:

It's a bug in npm (i think - I haven't had time to dig into it), but
basically an 'npm install -d' will install all the first level dependencies
of calipso, but not the dependencies of the dependencies ...

It's a pain in the a*, but this is basically:

cd node_modules/mongoose
npm install -d

You have to do this for the other modules that have dependencies (hook.io,
winston, connect-form etc.).

If there is a better way would be great to know what it is ...


Reply to this email directly or view it on GitHub:
#42 (comment)

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

No branches or pull requests

4 participants