node-sass: v3.7.0: Node Sass could not find a binding for your current environment: Linux 64-bit with Node.js 6.x

I looked through all related issues and could find one addressing this particular case. Please take a look at this build log:

https://codeship.com/projects/144193/builds/15493676

You will be able to find the following:

Node Sass could not find a binding for your current environment: Linux 64-bit with Node.js 6.x
[0] 
[0] Found bindings for the following environments:
[0]   - Linux 64-bit with Node.js 5.x

node 6.2.1 npm 3.9.3 node-sass 3.7.0

Am I missing something?

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Comments: 28 (5 by maintainers)

Commits related to this issue

Most upvoted comments

npm rebuild node-sass worked well for me. Thanks @xzyfer

As the message says you ran npm install with node 5 and now you’re on node 6. The error message should have instructed you to run npm rebuild node-sass On 9 Jun 2016 4:25 PM, “Anton Vynogradenko” notifications@github.com wrote:

I looked through all related issues and could find one addressing this particular case. Please take a look at this build log:

https://codeship.com/projects/144193/builds/15493676

You will be able to find the following:

Node Sass could not find a binding for your current environment: Linux 64-bit with Node.js 6.x [0] [0] Found bindings for the following environments: [0] - Linux 64-bit with Node.js 5.x

node 6.2.1 npm 3.9.3 node-sass 3.7.0

Am I missing something?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/sass/node-sass/issues/1585, or mute the thread https://github.com/notifications/unsubscribe/AAjZWIbhOZSEZmHV7zwOynWlSEykLM2eks5qJ7H0gaJpZM4Ixqma .

It’s work fine for me:

- rm -rf node_modules
- npm install
- npm rebuild node-sass (maybe need `sudo`)

@nschonni that makes sense, so probably npm cache clean would do the trick then. Great hint, I appreciate that, thanks!

TL;DR

Issue is resolved: do npm cache clean on your build servers.

“npm rebuild node-sass” worked for me

@xzyfer That is not true. Regradless of the interpretation as you can see in that build log this:

v6.2.1 is already installed.
Now using node v6.2.1 (npm v3.9.3)

CodeShip is a cloud-based build server, they run new environment for every build, so it’s impossible to run “npm install” with one node version and then “reuse” that on different build.

Please reopen.

npm rebuild node-sass worked well for me.

Didnt work for me, but on the right path. Needed https://cl.ly/hFPb

You have caching enabled in CircleCI, but not Travis. It is likely that the cache package was created when your builds were running on Node 5, and you updated. Check the CI documentation on how to fix/clear you cache and you won’t have to rebuild.

For me, i was able to get around this problem by installing node-sass globally…

npm install node-sass -g

More context Circle CI also failed: https://circleci.com/gh/Restuta/rcn.io/174 Travis CI did not, which is a mystery why: https://travis-ci.org/Restuta/rcn.io/jobs/136540366

Also it doesn’t fail on my local (OSX). Manually adding npm rebuild node-sass fixed builds on both CodeShip and Circle-CI. This means I don’t understand something about it and the process.

Does it make sense to run npm rebuild node-sass every time after npm install? Any drawbacks of doing that? @xzyfer