I just install less by using
sudo npm install -g less
and call this to try compile file, but it get error
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>'
how can i fix this, please help me