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.

JavaScript

Lots of errors following this video.

The two big errors seem to be:

Error: \`libsass\` bindings not found. Try reinstalling \`node-sass\`?
Error: angular-animate is not installed. Try running \`bower install\`.

This is after cloning the git repo, trying to install Yeoman, and running Gulp to see what happens.

1 Answer

Here's what I did to resolve the problems for the most part:

Yeoman didn't seem to install correctly, so I followed what somebody else suggested and installed "yo" with this command: sudo npm install -g yo

Apparently this is "Yeoman Doctor" and it looked like everything was good after that.

Then I had to install "bower" manually: sudo npm install -g bower

After that, the bower install command worked properly.

Still "libsass" was having problems. I found somebody who recommended removing "gulp-sass" and installing a newer version:

npm uninstall --save-dev gulp-sass

npm install --save-dev gulp-sass@2

Finally after that running gulp finished a build.

Unfortunately, I could not figure out why the fonts were not being processed as shown in the video. It's a problem with the module "main-bower-files" that I couldn't figure out without digging way deeper into bower and the associated tools.

But you can bypass the problem by going to the gulp fonts task in build.js and replacing

'$.mainBowerFiles()'

with

'bower_components/**/*'

That glob will find all the files in the bower_components subfolders and pass them to be filtered by the next command.