我不能在终端中使用lessc进行编译

时间:2018-04-13 08:56:47

标签: less

我只需使用

安装
sudo npm install -g less

并调用此方法尝试编译文件,但是出现错误

lessc '/home/annguyen/Desktop/test.less' >'/home/annguyen/Desktop/2.css' 
/usr/lib/ruby/2.3.0/rubygems/dependency.rb:319:in `to_specs': Could not find 'less' (>= 0.a) among 102 total gem(s) (Gem::LoadError)
Checked in 'GEM_PATH=/home/annguyen/.rvm/gems/ruby-2.5.0:/home/annguyen/.rvm/gems/ruby-2.5.0@global', execute `gem env` for more information
from /usr/lib/ruby/2.3.0/rubygems/dependency.rb:328:in `to_spec'
from /usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_gem.rb:65:in `gem'
from /usr/local/bin/lessc:22:in `<main>'

我该如何解决这个问题,请帮帮我

0 个答案:

没有答案