What causes this error in grunt-contrib-compass after update to Yosemite?

后端 未结 1 935
谎友^
谎友^ 2021-01-02 14:39

I am using Yeoman. After upgrading to Yosemite, the tasks grunt server and grunt build throw this error:

/Users/rogerfuentes/Docum         


        
相关标签:
1条回答
  • 2021-01-02 15:26

    If you run compass on the terminal window, you will see the following error:

    -bash: /usr/bin/compass: /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby: bad interpreter: No such file or directory

    If you go to the /System/Library/Frameworks/Ruby.framework, you will see the installation has updated Ruby version to 2.0. That's why running the compass fails, because there is no ruby 1.8 anymore.

    The solution is to re-install compass on Yosemite by running:

    xcode-select --install
    sudo gem update --system
    sudo gem install compass
    
    0 讨论(0)
提交回复
热议问题