Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Yeti problem - can't find module 'jade'

I've just installed Yeti from Yahoo, but when I go to http://localhost:8000/ I get this:

Error: Cannot find module 'jade'
at loadModule (node.js:289:15)
at require (node.js:420:14)
at ServerResponse.render (/usr/local/lib/node/.npm/yeti/0.1.0/dependencies/express/view.js:258:46)
at Object.<anonymous> (/usr/local/lib/node/.npm/yeti/0.1.0/package/lib/server.js:28:13)
at pass (/usr/local/lib/node/.npm/yeti/0.1.0/dependencies/connect/middleware/router.js:67:31)
at /usr/local/lib/node/.npm/yeti/0.1.0/dependencies/connect/middleware/router.js:80:14
at EventEmitter._tickCallback (node.js:50:25)
at node.js:773:9

I also want to mention that i have installed this using the installer package from Yahoo! http://yuilibrary.com/downloads/download.php?file=3716057163a82b4b00c2a00ab0bb186e

Is there a fix for this?

like image 333
Uffo Avatar asked Aug 31 '10 11:08

Uffo


2 Answers

I had this problem using the "Express" framework and I solved it by typing npm install -d in directory where my app was created.

like image 165
ryantm Avatar answered Oct 20 '22 22:10

ryantm


I haven't installed yeti, but by looking at the node stack trace, it looks like the maintainer left out the jade module.

From the console try:

/usr/local/bin/npm install jade

or

sudo /usr/local/bin/npm install jade

depending on your permissions.

Repeat for any other missing modules. If you're still stuck, I can download it and check it out.

like image 43
bxjx Avatar answered Oct 20 '22 20:10

bxjx