cloudhead/less.js — Issue #523: node 0.6.5 + less 1.1.6 fail to run anywhere but /usr/local/bin
Author: lookfirst
Created: 2011-12-14 09:42:53+00:00
State: open

OSX 10.7
nodejs 0.6.5 installed via the OSX package from the nodejs.org website.
less installed with 'sudo npm install -g less'

This puts everything into /usr/local/bin and /usr/local/lib/node_modules

This error doesn't happen if I cd /usr/local/bin, first.

Other tools such as coffee-script work fine in any directory.

cd ~
lessc
The "sys" module is now called "util". It should have a similar interface.

node.js:201
throw e; // process.nextTick error, or 'error' event on first tick
^
Error: require.paths is removed. Use node_modules folders, or the NODE_PATH environment variable instead.
at Function. (module.js:376:11)
at Object. (/usr/lib/node_modules/less/bin/lessc:7:8)
at Module._compile (module.js:432:26)
at Object..js (module.js:450:10)
at Module.load (module.js:351:31)
at Function._load (module.js:310:12)
at Array.0 (module.js:470:10)
at EventEmitter._tickCallback (node.js:192:40)