-
Notifications
You must be signed in to change notification settings - Fork 1.3k
'libsass bindings not found. Try reinstalling 'node-sass'? #918
Comments
Which node? Which npm? Which platform, operating system? |
Please follow the relevant in our Troubleshooting guide and reply if the problem persists. |
ran through all the steps on the troubleshooting guide, and have provided the results below.
I'm still having this issue, hopefully we can get it resolved. |
Running |
Yes, even when installing from root, the problem still occurs. |
Can you post a complete log to gist.github.com? Can you try as a non-root user? |
can't seem to find any log files to copy over. I've tried as both non-root and root. |
Do you have a |
there is a |
We ran into this when upgrading from 0.10.x to 0.12.2. Fixed by deleting the node_modules directory and then reinstalling from scratch with |
@Milkbone since I can't find any reference to |
Thanks for the extended support with this everyone, I really appreciate it. I searched through the
|
So, do I understand this correctly - Can you try running |
Correct, everything installs with no errors. one I run |
On Tue, 5 May 2015, Milkbone wrote:
Most probably you have some node_modules with an older/wrong node-sass somewhere down there, and gulp pickes up that. You can try
to see where you current node-sass is. |
here's what I get when I run that, it seems to the correct install
|
On Tue, 5 May 2015, Milkbone wrote:
And what is in the \Projects\Auth\node_modules\node-sass\vendor ? Does \Projects\Auth\node_modules\node-sass\bin\node-sass work? |
and no just running |
On Tue, 5 May 2015, Milkbone wrote:
Does not work? An error message? It does say nothing and just waits? Can you just type /* .... */ and give it enter and ctrl-z ? |
here is whats I get
|
what about (with a dot before |
same thing... |
On Tue, 5 May 2015, Milkbone wrote:
```
Projects\Auth> \Projects\Auth\node_modules\node-sass\.bin\node-sass
The system cannot find the path specified.
```
What is below your \Projects\Auth\node_modules\node-sass ?
|
this is whats in my node-sass file http://puu.sh/hCDmj/fef017598b.png |
On Tue, 5 May 2015, Milkbone wrote:
Can you do
and post 'contents.txt' to http://gist.github.com ? |
https://gist.github.com/Milkbone/b78c658266b040358c85 hope it helps abit more. |
This is still happening on my machine. Windows Server 2012 R2 Standard, using the following package.json file: {
"name": "LaunchTechnologies.Web.LaunchSite",
"version": "0.1.0",
"description": "",
"main": "gulpfile.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "",
"license": "ISC",
"devDependencies": {
"gulp": "^3.9.0",
"gulp-sass": "^2.0.4"
}
} And this is the error I'm getting:
Things I've tried with no success:
I should mention that when I do the fresh |
Windows 10 64bit I got this message today from inside the task runner built in with Visual Studio 2015. I had nodejs 0.12.7 64bit installed but turns out Visual Studio 2015 only runs as a 32bit process. So when I tried to run I fixed my problem by uninstalling node js 64bit and installing nodejs 32bit version so now it works from within Visual Studio 2015 and the console :) I'm not quite sure how this scenario happens but it seems that node-gyp was compiling the 64bit bindings but node when run under a 32bit process was trying to resolve the 32bit binding which didn't exist. |
I'm not quite sure how this scenario happens but it seems that node-gyp was compiling the 64bit bindings but node when run under a 32bit process was trying to resolve the 32bit binding which didn't exist.
you need bindings compiled to much your OS, architecture and the version if node.
if you need to use node-sass across multiple engines, you need to download bindings
for everybengine you are using. you can keep multiple versions in the vendor directory,
and node-sass will pick up the right one.
|
Hmmm, good to know. I'm was running the commands from a PowerShell console On Sat, Aug 1, 2015, 3:26 PM Marcin Cieślak notifications@github.com
|
I would recommend not to use PowerShell because it recognizes any kind of output to the standard error channel as a fatal error of the executed subprocess (example issue causing the failure is: npm/npm#8841). Just try |
I'll try that, though this would be the first time in 3 years of using node
|
I'll try that, though this would be the first time in 3 years of using node
that powershell has gotten in the way.
Well, we've run into it and it is a confirmed problem with npm.
One can use node for many years without touching any binary modules at all
and certainly PowerShell works in 99% of situations.
The issues we face here are not specific to node-sass - similar
problems are to be expected whenever native code is used.
|
Just an update - I tried using both 64 and 32 bit cmd.exe instead of powershell with the same result. I did just realize that I'm using an old version of node (v0.10.28) so I'm going to update that and see if that makes any difference. |
Updated to v0.12.7 x64, still have the same issue after deleting |
I have not enough details to help. Can you dump a full log according to our TROUBLESHOOTING.md guide? One thing that I noticed is that the system was trying to load 32-bit binding. That should work but I hope that is what is expected. |
Sure thing - I didn't update the error I was getting, but I opened both a 64-bit and 32-bit cmd side-by-side and tried everything in both of them just to make sure I was covering my bases. The binding it was attempting to use may have changed (that should show up in the logs I suppose) but the general error was the same. |
At this point I went into node_modules/gulp-sass and ran
And here's the error when running from an 64-bit cmd.exe - though I notice it's
|
I should also mention that the troubleshooting guide says to go to https://github.com/sass/node-sass-binaries/tree/v , but that's a 404. |
So gulp is making us believe we run on 32-bit node, while running on 64-bit? |
Had the same problem but on Ubuntu 14.04(vagrant laravel homestead) host was an Ubuntu 14.04 too. |
I'm also seeing the exact same error messages when using grunt and grunt-sass on windows.
|
I don't know if it's gulp doing it or what. However! I can verify that downloading the "missing" ia32 binding file into the appropriate directory fixes the problem. I don't know exactly what is causing node-sass to try using the ia32 bindings, but since 64-bit is perfectly capable of running 32-bit apps, including both x64 and ia32 bindings seems to suffice for a workaround until the actual cause can be identified. |
Are you using VisualStudio to run some tasks? I think it comes with 32-bit node. |
No, I'm running everything in a cmd.exe shell within ConEmu. |
I just went through the process of updating node on my system via homebrew. This lead to this error message popping on me, and not letting me move forward. It seemed to come down to old versions of files floating around, and deleting my Update node via homebrew:
I recommend using Update your global modules: Delete your current Run |
I assume from the fact that you're using homebrew that you're on OSX. The On Thu, Sep 10, 2015 at 7:36 PM Chris Kihneman notifications@github.com
|
It looks like you're using a version of node-sass that doesn't support Node
|
Somewhere in your system 64-bit and 32-bit environments got mixed. It is enough that even if you are certain you start in a 64-bit environment - something, somewhere (some stupid batch file for example) executes 32-bit node for you. We really depend on the Try logging |
To everyone who has read up to this point: This message means that you are using an outdated version of node-sass. You should try to use the newest version: just try the following command and try again:
This is the end. Thank you for your attention! We love you. |
I'm having a problem when running the command
gulp
I keep getting this error:below is my package.json file:
anyone have any ideas or thoughts on what could be going on?
The text was updated successfully, but these errors were encountered: