Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pb with last sass addition in gulpfile.js #6871

Closed
CSurieux opened this issue May 7, 2016 · 12 comments
Closed

Pb with last sass addition in gulpfile.js #6871

CSurieux opened this issue May 7, 2016 · 12 comments

Comments

@CSurieux
Copy link
Contributor

CSurieux commented May 7, 2016

task Runner is broken with this error

Failed to run "C:\Jingwei\src\Gulpfile.js"...
cmd.exe /c gulp --tasks-simple
Error: Missing binding C:\Jingwei\src\node_modules\gulp-sass\node_modules\node-sass\vendor\win32-ia32-11\binding.node
Node Sass could not find a binding for your current environment: Windows 32-bit with Node 0.10.x
Found bindings for the following environments:

  • Windows 32-bit with Node 0.12.x
    This usually happens because your environment has changed since running npm install.
    Run npm rebuild node-sass to build the binding for your current environment.
    at Object. (C:\Jingwei\src\node_modules\gulp-sass\node_modules\node-sass\lib\index.js:14:11)
    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. (C:\Jingwei\src\node_modules\gulp-sass\index.js:187:21)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)

Failed to run "C:\Jingwei\src\Gulpfile.js"...
cmd.exe /c gulp --tasks-simple
Error: Missing binding C:\Jingwei\src\node_modules\gulp-sass\node_modules\node-sass\vendor\win32-ia32-11\binding.node
Node Sass could not find a binding for your current environment: Windows 32-bit with Node 0.10.x
Found bindings for the following environments:

  • Windows 32-bit with Node 0.12.x
    This usually happens because your environment has changed since running npm install.
    Run npm rebuild node-sass to build the binding for your current environment.
    at Object. (C:\Jingwei\src\node_modules\gulp-sass\node_modules\node-sass\lib\index.js:14:11)
    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. (C:\Jingwei\src\node_modules\gulp-sass\index.js:187:21)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)

It appears I have Node 0.12 rather than Node 0.10 installed.
How to fix this ?

@CSurieux
Copy link
Contributor Author

CSurieux commented May 7, 2016

I removed the sass related lines in gulpfile.js as I don't need it actually....

@infofromca
Copy link
Contributor

i got the same

@Skrypt
Copy link
Contributor

Skrypt commented May 7, 2016

This is a problem related to node-sass itself. You need to rebuild it for your specific OS.
Alternatively you can download the bindings directly here : https://github.com/sass/node-sass-binaries

@CSurieux
Copy link
Contributor Author

CSurieux commented May 7, 2016

Yes, I also can read VS error text and Google results, thanks. I don't think I will follow your reco, sorry. But thanks.

@Skrypt
Copy link
Contributor

Skrypt commented May 7, 2016

You can also do that, it will save me time from answering issues that are not related to Orchard. You are welcome 😄

@Skrypt Skrypt closed this as completed May 7, 2016
@CSurieux
Copy link
Contributor Author

CSurieux commented May 7, 2016

I don't agree with all this. Your answer was a no answer and I am not the only to report this.
If answering is copying Google results...poor Orchard....
But wait, I could also stop reporting pbs and let you discover all of them.

@Skrypt
Copy link
Contributor

Skrypt commented May 7, 2016

Error: Missing binding C:\Jingwei\src\node_modules\gulp-sass\node_modules\node-sass\vendor\win32-ia32-11\binding.node

Can you read ?

@CSurieux
Copy link
Contributor Author

CSurieux commented May 7, 2016

Yes I can read and I have done all that is necessary but there is a bug.
Et stp, lâche-moi merci, pour qui te prends-tu ???

@Skrypt
Copy link
Contributor

Skrypt commented May 7, 2016

Where is the bug concerning Orchard here ?
Here is where it's been reported :
sass/node-sass#1162
This is a known bug, and the instructions are clear.

@Jetski5822
Copy link
Member

Seems like this is a node-sass issue reading through what @Skrypt mentioned... Can you try this to see if it fixes things?

npm rebuild node-sass
rm -rf node_modules
npm i

@Skrypt
Copy link
Contributor

Skrypt commented May 21, 2016

Here is some additional information for that "bug".
Visual Studio uses it's own version of Node.js, so if someone wants to use a manually installed version of Node.js or wants to upgrade it, here is what you need to do. Since node-sass needs to have bindings to it libsass.dll we need to recompile it each time we change Node.js versions "could be for an upgrade or downgrade". Though it will not be necessarly the same version that the Task Runner uses in Visual Studio. So this is why we get to have this message about node-sass binding mismatching versions.

So if we want to sync version of Node.js with Visual Studio you need to update it's tool settings like explained there :

http://ryanhayes.net/synchronize-node-js-install-version-with-visual-studio-2015/

@rtpHarry Could be good to add for the documentation on the gulp pipeline

@sebastienros
Copy link
Member

I faced the same issue on my machine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants