Skip to content

ENOENT and libsass bindings not found

leob edited this page Oct 24, 2015 · 6 revisions

Some people using the quickstarter project have reported that, after setting up the project according to the guidelines in the README and running the app in a browser using ionic serve, they get a blank page with the message:

Error: ENOENT: no such file or directory ... index.html

In this happens, I would advise you to run "ionic serve" with the arguments '-l' and '-c', so:

ionic serve -l -c

In some cases, the addition of "-l" in itself seems to be already enough to fix the problem (not sure about this, but the point seems to be that "-l" causes the default gulp process to run twice, which in some cases seems to do the trick).

However if the problem remains, then look at the messages in your console (terminal) window, which were enabled through the "-c" argument. Normally you should see an error message/stacktrace in the terminal/console which should tell you what is going wrong.

An error that has been reported by many Ionic users is the following:

libsass bindings not found. Try reinstalling node-sass?

For background on the issue, see:

http://forum.ionicframework.com/t/error-running-gulp-sass/32311 http://forum.ionicframework.com/t/libsass-bindings-not-found/27881

However, this problem SHOULD not occur when you install the quickstarter app, because I've upgraded gulp-sass to a version that should be compatible with both the 'old' and the 'new' nodejs versions.