节点/较少:util.puts:改用console.log [英] Node/less: util.puts: Use console.log instead

查看:95
本文介绍了节点/较少:util.puts:改用console.log的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我从终端运行lessc时,这些util.puts: Use console.log instead警告充满了混乱.我该如何使它们消失?

When I run lessc from my terminal it's riddled with these util.puts: Use console.log instead warnings. How do I make them go away?

mbayazit:~$ lessc --help
util.puts: Use console.log instead
usage: lessc [option option=parameter ...] <source> [destination]
util.puts: Use console.log instead

util.puts: Use console.log instead
If source is set to `-' (dash or hyphen-minus), input is read from stdin.
util.puts: Use console.log instead
...

我刚刚通过以下方式安装了less:

I just installed less via:

sudo apt-get install g++ curl libssl-dev apache2-utils
sudo apt-get install git-core
git clone git://github.com/ry/node.git
cd node
./configure
make
sudo make install

sudo npm install -g less

版本:

mbayazit:~$ lessc --version
util.puts: Use console.log instead
lessc 1.4.2 (LESS Compiler) [JavaScript]
mbayazit:~$ npm --version
1.3.5
mbayazit:~$ node --version
v0.11.5-pre

我认为这可能还会引起其他错误,因为它不会编译我的代码更少.

I think it may be causing other errors as well, as it won't compile my less code.

推荐答案

节点版本上的-pre使我感到怀疑.事实证明,这是一个糟糕的版本.我在下载页面"上获得了一个稳定的发行版,看来已经解决了该问题.

The -pre on the node version got me suspicious. Turns out, it's a bad build. I grabbed a stable release off the downloads page and that seems to have fixed the issue.

这篇关于节点/较少:util.puts:改用console.log的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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