Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

JavaScript Deploy your App to GitHub Pages with Gulp

Vincent Tatan
Vincent Tatan
22,960 Points

Try installing 'node-sass'

After I run gulp at my cmd, I came across this error message. I tried to run the command "npm install node-sass" but it wasn't successful. Please help.

C:\Users\vincentt.2013\Desktop\githubpages\treehouse-gulp-ghpages\node_modules\gulp-sass\node_modules\node-sass\lib\index.js:22 throw new Error('libsass bindings not found. Try reinstalling node-sass?'); ^

Error: libsass bindings not found. Try reinstalling node-sass? at getBinding (C:\Users\vincentt.2013\Desktop\githubpages\treehouse-gulp-ghpages\node_modules\gulp-sass\node_modules\node-sass\lib\index.js:22:11) at Object.<anonymous> (C:\Users\vincentt.2013\Desktop\githubpages\treehouse-gulp-ghpages\node_modules\gulp-sass\node_modules\node-sass\lib\index.js:188:23) at Module._compile (module.js:399:26) at Object.Module._extensions..js (module.js:406:10) at Module.load (module.js:345:32) at Function.Module._load (module.js:302:12) at Module.require (module.js:355:17) at require (internal/module.js:13:17) at Object.<anonymous> (C:\Users\vincentt.2013\Desktop\githubpages\treehouse-gulp-ghpages\node_modules\gulp-sass\index.js:3:17) at Module._compile (module.js:399:26)

Emmanuel Plouvier
Emmanuel Plouvier
11,919 Points

Hi,

can you post your package.json and gulpfile.js files ? :)

1 Answer

Arturo Alviar
Arturo Alviar
15,739 Points

Try this:

$ npm install -S gulp-sass@latest

This will update the glup-sass module in the package.json