Reputation: 2825
Today I install Ruby and Sass, and every went pretty normally.
I have Ruby installed and in my path. I can even do the following:
C:\> ruby -v
ruby 2.2.4p230 (2015-12-16 revision 53155) [x64-mingw32]
I also installed Sass, and the terminal, to my belief, knows that I'm calling Sass, but fails due to something else:
C:\> sass
'""C:\Program' is not recognized as an internal or external command,
operable program or batch file.
My guess is that the issue stems from Ruby being installed in:
C:\Program Files\Ruby\22-x64\
And that it doesn't like the space in Program Files
.
How can I fix this, without moving my Ruby installation?
Upvotes: 2
Views: 592
Reputation: 4687
edit sass.bat (and compass.bat .. in fact, you might review all the .bat files there) in %RUBY%/bin
path and replace the lines that start @""C:\Program...
with @"C:\Program....
You also will get use of the "Start Command Prompt with Ruby" Start Menu launcher if you edit the setrbvars.bat
while you are there.
Upvotes: 1