Question

I've been using Sass 3.2.13.

I want to try out the sourcemap generation in 3.3, so I installed 3.3.

'gem list | grep sass' returns

sass (3.3.0.rc.5, 3.2.14)

I would like to invoke sass 3.3 from the commandline. I'm not using sass from a within a ruby project.

I discovered that format should work:

gem_name __versionNum__ --opts

So, I've tried this:

sass _3.3.0.rc.5_ --watch --sourcemap sass/site.sass: css/site2.css

The resulting stack trace returns

"Could not find sass (= 3.3.0.rc.5)..."

I've tried variations, like 3.3.0, 3.3, but these return stack traces with the same message about not being able to find the specified version.

Was it helpful?

Solution

Turns out that I was calling the wrong 'sass' binary.

Instead of using my rbenv gem, I was using 'sass' from '/usr/local/bin'.

I've deleted system sass. Now when I call 'sass' I get the version offered by the gem I installed via rbenv.

Yes, I know I shouldn't be deleting system binaries. It's a dirty, dirty thing to do. In the desperate case of removing system ruby from ubuntu, I think the measure is justifiable.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top