Whenever I try to setup sass in ionic I get the following error
Error: `libsass` bindings not found. Try reinstalling `node-sass`?
I tried to rebuild sass as mentioned in many forums but get no results. I'm using node v4.2.1
Whenever I try to setup sass in ionic I get the following error
Error: `libsass` bindings not found. Try reinstalling `node-sass`?
I tried to rebuild sass as mentioned in many forums but get no results. I'm using node v4.2.1
I've just fixed problems with libsass or node-sass with this command:
$ sudo rm -rf node_modules/ && cat package.json | sed -i.bak 's/"gulp-sass": "^X.X.X"/"gulp-sass": "^2.0.4"/g' package.json && npm install && ionic lib update
Where X is the version of gulp-sass in your package.json
Explanation:
Remove the old files in node_modules. I'm not sure is necessary to use 'sudo' (in my case, yes).
$ sudo rm -rf node_modules/
Search and replace inside package.json updating gulp-sass version to ^2.0.4. It also creates a backup (package.json.bak),
$ cat package.json | sed -i.bak 's/"gulp-sass": "^X.X.X"/"gulp-sass": "^2.0.4"/g' package.json
Reinstall dependencies
$ npm install
Update the ionic lib in the project
ionic lib update
If you have any further problems be sure I try can help you...
Bye