cloudhead/less.js — Issue #522: Cannot find module 'less'
Author: antonixm
Created: 2011-12-14 09:39:24+00:00
State: open

Because issue #45 was closed I had to open a new one. The problem still remains. However by reading this comment:
cloudhead commented June 26, 2010
It should all be in ~/.node_libraries, which require() looks in

which is wrong in my case. My lib directory is ~/node_modules, in which the actual less resides. Any ideas how to fix it?
less was installed via npm.

** [out :: ] [RuntimeException]
** [out :: ]
** [out :: ] node.js:201
** [out :: ] throw e; // process.nextTick error, or 'error' event on first tick
** [out :: ] ^
** [out :: ] Error: Cannot find module 'less'
** [out :: ] at Function._resolveFilename (module.js:334:11)