lessc returns empty CSS file

老子叫甜甜 提交于 2019-12-11 13:19:39

问题


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



来源:https://stackoverflow.com/questions/24968807/lessc-returns-empty-css-file

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!