Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

CSS

Getting "-bash: bourbon: command not found" after I installed Bourbon

I've installed Bourbon (the Sass Mixin Library) like this:

sudo gem install bourbon

I then typed

bourbon install

and got

-bash: bourbon: command not found

Any ideas?

1 Answer

Chris Shaw
Chris Shaw
26,650 Points

Hi Ryan,

Typically this happens when the PATH hasn't updated yet, the two easiest ways I've used constantly in the past is as follows.

  1. Close all the terminal windows and re-open a new one
  2. or restart your Mac which 99.99% of the time fixes this issue

If it continues to fail you can try running a self update on gem as it can also be a binding issue where the executable exists but gem simply hasn't registered it yet.

sudo gem update –system

You nailed it! Thanks. All working for me now :)

Chris Shaw
Chris Shaw
26,650 Points

Awesome, glad to help.

James Barnett
James Barnett
39,199 Points

Good to know.

And here I was thinking gem binaries had to be added to the path variable manually.