Error: “compass:dist” Fatal error: spawn /usr/bin/compass ENOENT

匿名 (未验证) 提交于 2019-12-03 09:02:45

问题:

Guys, I'm generating build my application with the grunt, it uses the compass. I set some variables:

export GEM_PATH =/usr/local/rvm/gems/ruby-2.1.2:/usr/local/rvm/gems/ruby-2.1.2@global export PATH=$PATH:/usr/local/rvm/gems/ruby-2.1.2/bin export PATH=$PATH:/usr/local/rvm/rubies/ruby-2.1.2/bin; export PATH=$PATH:$GEM_PATH; export PATH=$PATH:node_modules/grunt-cli/bin; 

and perform the build grunt. The following Fatal error is :

4mRunning "compass:dist" (compass) task[24m 31mFatal error: spawn /usr/bin/compass ENOENT[39m

Could someone help me with this problem?

Thank

回答1:

I have had this issue after updating to EL Capital.

The following thread has yielded positive results. As I am unsure about your local environment, here's the link so that you can go through a few solutions: https://github.com/sass/sass/issues/1768

Here's what solved it for me:

brew install ruby sudo gem install -n /usr/local/bin compass 


标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!