-
Notifications
You must be signed in to change notification settings - Fork 308
Error: Cannot find module 'hooks' #42
Comments
Not sure - does it work if you manually install hooks? If so, I'll add it as an explicit dependency. |
Not sure either. What got calipso to finally work was to remove it On Sun, Jun 5, 2011 at 11:56 PM, cliftonc
|
Cool, glad you got it working! |
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. |
I met this issue again , can anyone tell me , where can I download the hooks module ? |
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 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 ... |
Thanks for your reply very much. I have downloaded hooks.js https://github.com/bnoguchi/hooks-js file , mongoose is really excellent , I love it very much .
|
$ /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
The text was updated successfully, but these errors were encountered: