4

I have installed node.js, npm, and less

node.js version is v0.5.9-pre npm version is 1.0.10

When I run any lessc command I get this error:

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


node.js:203
        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. (/var/www/node/npm/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. (module.js:470:10)
    at EventEmitter._tickCallback (node.js:195:26)

What do I need to do to be able to use the lessc compiler?

1 Answer 1

2

This is a change in v0.5 that probably lessjs does not take into account yet. Use node v0.4.x.

If you installed using git, do the following:

cd /path/to/your/node/git/repository
git checkout v0.4.12
make && sudo make install

It should work fine now :)

Sign up to request clarification or add additional context in comments.

1 Comment

You can also check if this solves it under your version: github.com/cloudhead/less.js/issues/320#issuecomment-1602207

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.