node-sass: `libsass` binding not found

I’ve seen several threads elsewhere with this same issue, must have tried 20 solutions, none worked for me so far.

 "Uncaught Error: `libsass` bindings not found. Try rei nstalling `node-sass`?", source:     C:\Users\Casey\Electron\resources\app\node_modules\node-sass\lib\index.js (22)

About this issue

  • Original URL
  • State: closed
  • Created 9 years ago
  • Comments: 24 (12 by maintainers)

Commits related to this issue

Most upvoted comments

For context this error is almost always because npm install ran with a different version of node than the version you’re current running.

Since node-sass is a native module we build the c++ code on installation. That code is tied to the version of node that ran the installation. If you change your node version the extension needs to be rebuilt, that’s what npm rebuild does.

It’s our fault for not producing a more useful error message. This will be fixed. On 15 Sep 2015 17:24, “Ash Connell” notifications@github.com wrote:

npm rebuild node-sass magically worked. No idea why

— Reply to this email directly or view it on GitHub https://github.com/sass/node-sass/issues/906#issuecomment-140303382.