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

CSS

Getting a weird error when I try and run gulp compileSass in the Gulp Basics Course...

When I try and run the

gulp compileSass

in terminal in the Gulp Basics compiling Sass I continue to get this error and I am not sure what to do. I have tried updating gulp-sass, installing node-sass, etc..

3 Answers

Nevermind, I figured it out. I had this

sass    = require('sass');

instead of

sass    = require('gulp-sass');

Problem solved

Oops... This is the error that I am getting

module.js:338
    throw err;
          ^
Error: Cannot find module 'sass'
    at Function.Module._resolveFilename (module.js:336:15)
    at Function.Module._load (module.js:286:25)
    at Module.require (module.js:365:17)
    at require (module.js:384:17)
    at Object.<anonymous> (/Users/jessiegibson/Dropbox/webdev/treehouse-gulp-basics/gulpfile.js:7:10)
    at Module._compile (module.js:430:26)
    at Object.Module._extensions..js (module.js:448:10)
    at Module.load (module.js:355:32)
    at Function.Module._load (module.js:310:12)
    at Module.require (module.js:365:17)