开发者

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开发者_StackOverflow: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?


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


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.


I solved this problem with:

ln -s /usr/lib/node ~/.node_modules

So the full npm install process for me was:

curl http://npmjs.org/install.sh | sudo sh
ln -s /usr/lib/node ~/.node_modules
sudo npm install jade
node ./build.js

(do not use sudo if not required)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜