Error running gulp sass

I had trouble too.

Ionic Team, please make a priority to fix this : I fear you may lose some newbies just because of this issue. It’s not the first machine where I get the ionic setup sass error.

Here’s what worked for me, considering this setup :

Cordova CLI: 5.3.1
Gulp version: CLI version 3.9.0
Gulp local: Local version 3.9.0
Ionic Version: 1.1.0
Ionic CLI Version: 1.6.4
Ionic App Lib Version: 0.3.8
ios-deploy version: Not installed
ios-sim version: Not installed
OS: Mac OS X Yosemite
Node Version: v0.12.7
Xcode version: Xcode 6.4 Build version 6E35b

You may want to follow these steps :

  1. sudo npm install -g n
  2. sudo n 0.12.7
  3. sudo npm install node-sass@2
  4. sudo npm -g install node-gyp@3
  5. sudo npm rebuild node-sass

After that, ionic serve runs OK.

Let me know how it goes for you. Not sure which exact step made the difference, sadly I am no node specialist…

7 Likes