Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialZack Bostian
5,216 PointsCSS to SaSS workspace issues.
I am following the CSS to SASS course through workspace, however, I am running into an issue where the sass --watch sass:css command gives me this error:
treehouse:~/workspace$ sass --watch _style.scss:style.css
/usr/local/lib/ruby/2.2.0/rubygems/dependency.rb:315:in to_specs': Could not
find 'sass' (>= 0) among 6 total gem(s) (Gem::LoadError)
Checked in 'GEM_PATH=/home/treehouse/.local/gems', execute
gem envfor more
information
from /usr/local/lib/ruby/2.2.0/rubygems/dependency.rb:324:in
to_spec'
from /usr/local/lib/ruby/2.2.0/rubygems/core_ext/kernel_gem.rb:64:in
gem'
from /usr/local/bin/sass:22:in
<main>'
What does this error mean? I'd really love to do this course as I want to practice refactoring my projects css to sass!
11 Answers
Guil Hernandez
Treehouse TeacherHi everyone,
This has been resolved. You're now able to run any sass --watch
command in the console and enjoy the wonders of Sass. :)
Guil Hernandez
Treehouse TeacherAs a temporary workaround, it looks like if you run gem install sass
in the Workspace console, then sass --watch scss:css
it won't return the error.
I'll update you when it's completely fixed.
Petrov von Petrov
21,916 PointsIt's confirmed, problem solved :)
Caroline Hagan
12,612 PointsI'm not fully versed in the realm of Sass or Ruby myself, however having a bit Google it may relate to the setup you have on your computer ... are you using Windows or Mac? Are you using any particular software? This would greatly help troubleshoot this for you Zack Bostian
Zack Bostian
5,216 PointsI am using windows and I also am using Ruby Version 2.1.7 64x
Petrov von Petrov
21,916 PointsHi. I'm having the same problem. I saw Caroline Hagan answer, and I was a bit puzzled; if Sass is running inside the Workspaces terminal ─ which is web served ─ what does the computer configuration have to do with it?
Caroline Hagan
12,612 PointsAh I see what you mean, I thought this was a setup on his own computer, not Workspaces. My apologies
Caroline Hagan
12,612 PointsIf it is a Workspaces issue, I'd suggest reporting it to the Help/Support team .. it could be a bug they might need to address, but better for them to look into it, instead of us guessing.
Pragmatic Web Limited
3,909 PointsDid anyone find an answer to this? I'm having exactly the same problem! Thanks
Petrov von Petrov
21,916 PointsI just moved on and finished that course without replicating the coding on Workspaces.
Pragmatic Web Limited
3,909 PointsThanks for letting me know Pedro, weird isn't it. I emailed support to try to find a resolve, but might have to follow your lead otherwise
Petrov von Petrov
21,916 PointsI think it's the best thing to do. It seems the issue isn't going away any time soon, and there's no point in getting stuck on account of it. It's a pity, though.
Pragmatic Web Limited
3,909 PointsIndeed it is, oh well! Thanks again for your help
Guil Hernandez
Treehouse TeacherHey there,
Our Workspaces team is aware of the issue and getting it fixed ASAP. I'll let you know as soon as it's fixed. :)
Guil
Pragmatic Web Limited
3,909 PointsCool thanks Guil :)