SASS Issue - libsass bindings not found

The following error keeps showing up now:
ionic $ /APP/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 (/APP/node_modules/gulp-sass/node_modules/node-sass/lib/index.js:22:11)
at Object. (/APP/node_modules/gulp-sass/node_modules/node-sass/lib/index.js:188:23)
at Module._compile (module.js:409:26)
at Object.Module._extensions…js (module.js:416:10)
at Module.load (module.js:343:32)
at Function.Module._load (module.js:300:12)
at Module.require (module.js:353:17)
at require (internal/module.js:12:17)
at Object. (/APP/node_modules/gulp-sass/index.js:3:17)
at Module._compile (module.js:409:26)

System Information:
Cordova CLI: 6.1.1
Gulp version: CLI version 1.2.1
Gulp local: Local version 3.9.0
Ionic Version: 1.1.0
Ionic CLI Version: 1.7.14
Ionic App Lib Version: 0.7.0
ios-deploy version: 1.8.5
ios-sim version: 5.0.8
OS: Mac OS X El Capitan
Node Version: v4.4.2
Xcode version: Xcode 7.3.1 Build version 7D1014

This error has come about suddenly and I have tried various ways to fix this, including:
reinstalling node-sass
updating node (that breaks many more things, so reverted back to 4.4.2)

What could be other possible solutions to fix this problem?

1 Like

Just fought through that issue. Look at the package.json file for the app you are working on. Update the packages to the latest revs. My gulp-sass was referencing a very old version.

To locate the current version of a package, just go to npm and search for the package by name. The version is listed along the right hand side of the page.

Then delete the node_modules folder and run npm install. This should reassemble the packages with the correct dependencies.

Good luck