When I try to install less css compiler under my Ubuntu 13.10 box I get following message and lescss don't working. In what way I can fix the problem? I execute:
sudo npm install -g less
After this I get e list with OK messages:
npm http 304 https://registry.npmjs.org/cryptiles
npm http 304 https://registry.npmjs.org/ctype/0.5.2
npm http 304 https://registry.npmjs.org/combined-stream
npm http GET https://registry.npmjs.org/delayed-stream/0.0.5
npm http 304 https://registry.npmjs.org/sntp
npm http 304 https://registry.npmjs.org/boom
npm http 304 https://registry.npmjs.org/delayed-stream/0.0.5
And list finished with following:
/usr/local/bin/lessc -> /usr/local/lib/node_modules/less/bin/lessc
less@1.7.0 /usr/local/lib/node_modules/less
├── mime@1.2.11
├── mkdirp@0.3.5
├── source-map@0.1.33 (amdefine@0.1.0)
├── clean-css@2.1.8 (commander@2.1.0)
└── request@2.34.0 (json-stringify-safe@5.0.0, forever-agent@0.5.2, aws-sign2@0.5.0, qs@0.6.6, tunnel-agent@0.3.0, oauth-sign@0.3.0, node-uuid@1.4.1, tough-cookie@0.12.1, http-signature@0.10.0, hawk@1.0.0, form-data@0.1.2)
After this when I tried the following commands:
echo "@foo: 25px; #foobar{font-size: @foo};" > style.less
sudo lessc ./style.less ./style.css
I get the following error:
/usr/bin/env: node: No such file or directory
After I executed
ln -s /usr/bin/node /usr/local/bin/nodejs
and created symlinks there is no errors but lessc compiler don't working properly. I have created file to test. It content is:
cat style.less
@color: #4D926F;
#header {
color: @color;
}
h2 {
color: @color;
}`
and after trying
lessc styles.less > styles.css
There is created file - styles.css but the file is empty. I also try commands that I tryed before - see top on the post. But it not working. I would be very grateful for any advice and recommendations.
Best regards.