简体   繁体   English

lessc无法在osx上编译

[英]lessc not compiling on osx

I have installed less from npm (sudo npm install -g less). 我已经从npm安装了更少(sudo npm install -g less)。

Version 2.6.1 版本2.6.1

When I try to compile a .less file, I have not results 当我尝试编译.less文件时,我没有结果

I write: 我写:

lessc mylessfile.less destination.css lessc mylessfile.less destination.css

The "destination.css" file is not created 未创建“ destination.css”文件

If I write: 如果我写:

lessc mylessfile.less lessc mylessfile.less

It not show me the .less file in console. 它没有显示控制台中的.less文件。

I am using OSX 10.11.4 我正在使用OSX 10.11.4

Can you help me please? 你能帮我吗?

Thanks!! 谢谢!!

I risolved. 我解决了 The problem was the version of node (6.0.0) Now I installed the version 4.4.4 and now is working fine 问题是节点(6.0.0)的版本,现在我安装了版本4.4.4,现在工作正常

It seems that Node 6.0.0 and 6.1.1 gave that problem. 似乎节点6.0.0和6.1.1出现了此问题。 I was using node 5.x and there was no problem. 我使用的是节点5.x,没有问题。 Then i just bought new mac, installing latest 6.1.0, and face the same problem. 然后我刚买了新的Mac,安装了最新的6.1.0,并遇到了同样的问题。

I tried to install 4.4.4 LTS, and the problem is solved. 我尝试安装4.4.4 LTS,问题已解决。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM