LMSouq
general-dev Open

libsass bindings not found when using node-sass in nodejs

TO
TorbenJ
1 month ago
3 views
Problem Description
I want to use the `node-sass` module in my `node.js v0.12` application to benefit from the performance of `libsass`.<br> I executed `npm i node-sass` to install the module, no errors so far.<br> Now the mess starts:<br> If I just open the `REPL` in a terminal to try out `node-sass` then everything works fine but if I include it in my project files and run `node myfile.js` then I get the following error message:<br> Error: `libsass` bindings not found. Try reinstalling `node-sass`? The module's description at [npmjs.com][1] states that there might be a problem with resolving `#!/usr/bin/env node` under Ubuntu and how to fix this but that is not the case on my machine.<br> I could not find anything useful so I hope that you might help me.<br> I'm using node v0.12.2 under Ubuntu 14.10. P.S.: I already tried to reinstall node-sass but without success. Nothing changes. [1]: https://www.npmjs.com/package/node-sass#install

AI-Generated Solution

Powered by LMSouq AI · GPT-4.1-mini

✓ Solution Ready
Analyzing problem and generating solution…
Was this solution helpful?
Back to Knowledge Base