Error: SASS installation for windows

前端 未结 11 1306
说谎
说谎 2020-12-04 17:20

am trying to install sass after installing ruby, but iam getting following error, please help me to fix this

    maradhak@WW730VW7X1688 /c/softwares
    $ ge         


        
11条回答
  •  隐瞒了意图╮
    2020-12-04 18:16

    I'm totally new to Ruby and Sass. I didn't want to risk security and I'm on a Windows machine. I had already installed latest ruby, but kept getting the same error message as the OP when trying to run gem install sass at the command prompt.

    Here's what solved the problem for me.

    Go to: https://rubygems.org/pages/download and follow the instructions on the page starting here (for manual installation):

    If you don't have any RubyGems installed, there is still the pre-gem approach to getting software, doing it manually:

    1. Download from above (URL above)
    2. Unpack/unzip into a directory and cd there (into the directory you unzipped it)
    3. Install with: ruby setup.rb (at the command line type that command. You may need admin/root privilege)

    After I installed ruby gems, I opened Ruby command prompt (using Start Command Prompt with Ruby from the start menu) and ran the command gem install sass and it worked:

    C:\Users\chris>gem install sass
    Fetching: sass-3.4.22.gem (100%)
    Successfully installed sass-3.4.22
    Parsing documentation for sass-3.4.22
    Installing ri documentation for sass-3.4.22
    Done installing documentation for sass after 36 seconds
    1 gem installed
    

    Wanted to detail it as much as possible for other newbies like me. Hope this helps someone.

提交回复
热议问题