lessc returns empty CSS file

2019-08-03 22:27发布

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.

标签: ubuntu less
1条回答
孤傲高冷的网名
2楼-- · 2019-08-03 23:24

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

查看更多
登录 后发表回答