question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Install fails - Windows 2008 - Error: `libsass` bindings not found. Try reinstalling `node-sass`?

See original GitHub issue

Can someone give me a pointer here?

Trying to automate a build on a TeamCity server that’s running on Windows 2008. For some reason, all the other npm packages install. But gulp-sass install seems to keep failing:

> Error: `libsass` bindings not found. Try reinstalling `node-sass`?
>      at getBinding (G:\[...]\node_modules\gulp-sass\node_modules\node-sass\lib\index.js:21:11)
>      at Object.<anonymous> (G:\[...]\node_modules\gulp-sass\node_modules\node-sass\lib\index.js:211:23)
>      at Module._compile (module.js:456:26)
>      at Object.Module._extensions..js (module.js:474:10)
>      at Module.load (module.js:356:32)
>      at Function.Module._load (module.js:312:12)
>      at Module.require (module.js:364:17)
>      at require (module.js:380:17)
>      at Object.<anonymous> (G:\[...]\node_modules\gulp-sass\index.js:3:17)
>      at Module._compile (module.js:456:26)
>      at Object.Module._extensions..js (module.js:474:10)

If I track the error to earlier in the log, this is what I find:

> fs: missing callback Error: EPERM, unlink 'G:\[...]\node_modules\gulp-sass\node_modules\node-sass\vendor\win32-ia32\binding.node'

Happens every time. I tried installing node-sass directly too, which seems to pass without errors, but gulp-sass still throws the EPERM and libsass error anyway.

Thoughts?

Issue Analytics

  • State:closed
  • Created 9 years ago
  • Comments:23 (1 by maintainers)

github_iconTop GitHub Comments

17reactions
ghostcommented, Mar 13, 2016

Try this fixes:

sudo npm install -g n sudo n 0.12.7 sudo npm install node-sass@2 sudo npm -g install node-gyp@3 sudo npm rebuild node-sass

13reactions
sumanbogaticommented, Jul 8, 2016

@For me this sudo npm install -S gulp-sass@latest fixed the problem. I have centos6.5, node v4.4.7 and npm 3.10.4

Read more comments on GitHub >

github_iconTop Results From Across the Web

libsass bindings not found when using node-sass in nodejs
I executed npm i node-sass to install the module, no errors so far. Now the mess starts: If I just open the REPL...
Read more >
Error: libsass bindings not found. Try reinstalling node-sass ...
My workaround is only remove node-sass folder in node_modules and re-install package. It's inconvenient. Which other ways to solve this issue?
Read more >
`libsass` bindings not found. Try reinstalling `node-sass`?
Hi everyone, I tried to update my node version and things goes wrong. Now I've got this error message : 'libsass' bindings not...
Read more >
Resolving Grunt Error - libsass bindings not found in...
Step 1: run npm update from the grunt directory with your package.json. · Step 2: Likely if you try to run grunt, you'll...
Read more >
How to fix libsass bindings not found
Anyway, after much back and forth, it turns out the solution was quite simple. From your project directory: rm -rf node_modules npm install....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found