lessc返回空的CSS文件 [英] lessc returns empty CSS file

查看:84
本文介绍了lessc返回空的CSS文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近在Ubuntu 14.04中安装了less,但是它根本不起作用.

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

我已经通过

sudo apt-get install node npm 

然后我用

安装了less

npm -g install less

问题是每次我尝试运行

lessc bootstrap.less > theme.css

输出是一个空的CSS文件.

the output is an empty css file.

推荐答案

我找到了解决此问题的方法.

I've found a solution to this problem.

我错误地安装了node软件包而不是nodejs.

I wrongly installed the node package instead of nodejs.

删除node并安装nodejs后,出现此错误

After removing node and installing nodejs I got this error

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

我刚刚被处死

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

更多信息可在此处找到: Express.js:否此类文件或目录

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

这篇关于lessc返回空的CSS文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆