Node.js Module not found

28 Jul

I am enjoying butchering Node.js these days.
I followed installation instructions to the letter and still stuff keeps not working.

The most common error is related to node.js not finding some module.

Get this node.js !

console.log(require.paths);
require.paths.push('/opt/local/lib/node');
console.log(require.paths);

Once again, it's ugly but it works.. just insert your node path in there. I guess eventually everything will get fixed but in the meantime I just need things to work so I can experiment with these technologies.
If you know a better way to do it, please let us know.
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: