SASS compile error - LoadError: cannot load such file -- listen/version Use --trace for backtrace
Solution 1
This is what fixed it for me and some others:
sudo gem uninstall listen --version 2.7.0
sudo gem install listen --version 2.4.1
Solution 2
Lubuntu fixed with a simple:
sudo gem install sass-listen
Solution 3
On Linux Mint 18.1. You can help it
sudo apt-get install ruby-listen
Solution 4
Just tried a mix of some answers, on Ubuntu 21:
First:
sudo apt-get install ruby-listen
And then:
sudo gem install sass-listen
It's now posible to sass src:dst --watch
Thank you @dimetrodon, @maxime-lorant and @kevin-mack
Solution 5
I was receiving the same error. The output with the --trace option will contain something like the following near the top:
`require': cannot load such file -- rb-inotify
I have no experience with ruby but seems like sass is simply trying to load in a dependency which isn't there. You can use gem to resolve it:
gem install rb-inotify
FoamyMedia
Web designer. Bit of a noob with the coding side so sorry for all the questions :)
Updated on June 25, 2022Comments
-
FoamyMedia almost 2 years
I am trying to use SASS for the first time, i have installed the latest version but get errors in the terminal
stuarts-imac:css stuartcookney$ sass --watch main-style.scss Sass is watching for changes. Press Ctrl-C to stop. write main-style.css LoadError: cannot load such file -- listen/version Use --trace for backtrace.
It compiles the css file but something is broken as any other changes that i make they do not update.. what is wrong?
-
Raffi over 2 yearsTo install dart-sass,
npm install -g sass
worked for me.