lessc returns empty CSS file

2019-08-03 23:02发布

问题:

I've recently installed less in Ubuntu 14.04 but it doesn't work at all.

I've installed npm and node via

sudo apt-get install node npm 

and then I've installed less with

npm -g install less

Problem is that every time I try to run

lessc bootstrap.less > theme.css

the output is an empty css file.

回答1:

I've found a solution to this problem.

I wrongly installed the node package instead of nodejs.

After removing node and installing nodejs I got this error

/usr/bin/env: node: No such file or directory

I just executed

sudo ln -s /usr/bin/nodejs /usr/local/bin/node

More info can be found here: Express.js: No Such file or directory



标签: ubuntu less