Node/less: util.puts: Use console.log instead

别说谁变了你拦得住时间么 提交于 2019-12-24 02:42:54

问题


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
...

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

Versions:

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.


回答1:


I got the same issue but my node version was not tagged as pre I just had the latest.

So I did a:

n stable



回答2:


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.



来源:https://stackoverflow.com/questions/18023508/node-less-util-puts-use-console-log-instead

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