-
Notifications
You must be signed in to change notification settings - Fork 1.3k
node 4.0.0 - Error: The libsass binding was not found in /node_modules/gulp-sass/node_modules/node-sass/vendor/darwin-x64-14/binding.node #1162
Comments
gul-sass won't work. Please copy the command exactly. Can you post the full output of |
It's a typo. Actually, I have a gulp task which requires the "gulp-sass" package. When I run the gulp task, was facing these issues. Error was reported saying "vendor/darwin-x64-14/binding.node" not found. But, when I explored the folder structure inside node_modules, I see "vendor/darwin-x64-46/binding.node". Not sure how darwin version of "46" got created but still node-sass was looking for "14". So, manually created folder "darwin-x64-14". Then downloaded equivalent "binding.node" file from After this, everything is working fine; but only through manual process. Inside "node_sass/package.json", I see Please let me know, if I am missing anything. Not sure why "darwin-x64-46" folder is getting created while "node-sass" package is looking for "darwin-x64-14" folder. |
^^ This one is for node 0.12
^^ This one is for node 4.0.0 Probably your gulp stuff is still using node 0.12. |
@mgkamal regarding
|
This means at some point you ran |
Had same issue on Ubuntu 14.04 Went here https://github.com/sass/node-sass-binaries/blob/master/darwin-x64-14_binding.node and I had to create the |
Same issue here, Slackware 64 current I solved with: install -Dm644 linux-x64-46_binding.node /usr/lib64/node_modules/node-sass/vendor/linux-x64-46/binding.node where linux-x64-46_binding.node is https://github.com/sass/node-sass-binaries/raw/master/linux-x64-46_binding.node |
Looks like we have a pattern here. Who would be available for a live troubleshooting session over IRC or Slack? You can find me as "saper" on irc.freenode.net, just join #io.js and ping me there. |
@sasper the resolution is getting the latest |
I had to do: npm rebuild node-sass
rm -rf node_modules
npm i |
@justin808 Worked for me 👍 |
@justin808 Worked for me as well, finally! |
Worked for me as well, thanx |
@justin808 when i write: My OS is Windows 10 Enterprise 64-bit |
Windows. |
@hamedmehraei rm -rf is uinx command see this link http://www.lemoda.net/windows/windows2unix/windows2unix.html and if you want unix command in window then install cygwin then you can use rm -rf command UNIX | WINDOWS |
Quick note for Visual Studio people who bump into this issue from google: |
Thanks @maxgrass - that did the trick! |
Works perfectly for me to ! Thanks ;-) |
Thank @kevalbhatt. it worked :) 👍 |
Thanks @maxgrass - Totally worked. |
@justin808 method worked for me in one go! Thanks mate :) |
Thanks @justin808 worked very well for me! |
@justin808 Thanks a lot. It worked like a charm. |
I had to rename
|
I had to rename Unfortunately, now I just get |
@neilsimp1 you need to fetch a proper module, just renaming the directory will not work. You can fetch binaries manually from https://github.com/sass/node-sass-binaries |
@saper Thank you so much, that did the trick! |
@justin808 :+1: super thanks ! |
This is unrelated and just renaming the directory will not work. Make sure you npm install with the same node engine as you run. It is possible to have multiple bindings in the vendor directory. |
@justin808 thx!!!!! |
@neilsimp1 please check @maxgrass comment above. You are using a different node engine to install and a different one to run your sass. If you need to switch engines for some reason, you can download additional modules from https://github.com/sass/node-sass-binaries (you need to download the binary file, create the directory and rename the file to binding.node) |
If anybody faces the problem using MS Visual Studio 2015 and running gulp from its Task Runner, please try to restore npm packages first by right clicking |
Works for me too |
you should use
don't use rm -rf node_modules . if you do this , the error will show again when you run task |
@neilsimp1 make sure you are using only the same node engine version when installing and when running your application. |
@saper ERROR in Missing binding /tmp/build/node_modules/node-sass/vendor/linux-x64-46/binding.node Found bindings for the following environments:
This usually happens because your environment has changed since running |
|
Here is the output for /app npm rebuild node-sass
Binary downloaded and installed at /app/node_modules/node-sass/vendor/darwin-x64-46/binding.node
"/app/node_modules/node-sass/vendor/darwin-x64-46/binding.node" exists. But still when i do npm pack it gives the error ERROR in Missing binding /tmp/build/node_modules/node-sass/vendor/linux-x64-46/binding.node Found bindings for the following environments:
This usually happens because your environment has changed since running |
The message is very clear. You built the binding on OSX and then you've
|
I have similar issue, here is the env details: Node: v4.4.7 I have |
BTW, I have no problem in OS X, which runs the same version of Node and Npm. |
Found the solution. Node 6.3.1 seems to resolve all above issue. Consider upgrading it. Works for brew too. brew update |
Had the same issue on OSX@10.11.5 Node.js@6.2.1 npm@3.10.3. |
For reference, I just had this issue, my dev environment is as follows: Windows 10 I was repeatedly getting build/ELIFECYCLE errors when running To fix the issue, I had to manually download win32-x64-48-binding.node from here: https://github.com/sass/node-sass-binaries, put it in the node_modules/node-sass/vendor/win32-x64-48 directory (this directory already existed but was empty) and rename the file to binding.node I also downloaded the win32-x64-48_binding.pdb file, but I did not rename it after placing it in the above directory, and I'm not sure it's required (required only to build the binding I guess, which I no longer need to do) The problem is now fixed, I still can't run |
@ibasoni that's the piece i was missing. thanks! |
@justin808 👍 it's work it |
@justin808 you are awesome! Thanks mate! |
After had try so much, this solution work for me:
PS: I had forget the TIP to resolve all problems:
|
NodeJS version 4.0.0
npm 2.14.2
XCode (Version 7.0 (7A220))
MAC OS: Yosemite 10.10.5 (14F27)
When I tried running "gulp-sass", getting error in "node-sass" package.
Error details:
/node_modules/gulp-sass/node_modules/node-sass/lib/extensions.js:150
throw new Error([
^
Error: The libsass binding was not found in /node_modules/gulp-sass/node_modules/node-sass/vendor/darwin-x64-14/binding.node
Tried below 2 options but still getting the same error,
Delete node_modules
Install "gulp-sass" as dev dependency (npm install gulp-sass --save-dev)
npm install
gul-sass
npm install node-sass
The text was updated successfully, but these errors were encountered: