-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Cannot find module '[snip]node_modules/pg/lib/native/../../build/default/binding' #127
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
Comments
Workaround:
|
Yeah. I'm guessing the npm install of the package failed to build the native bindings properly. Do you have a log from when you did npm install of the package? I'm guessing you're missing a postgres library header or something & it's not building. So then you go to load the native module and it can't find the release folder and fails. I do agree that error message could be better. |
Here is a fresh build log from NPM:
|
are you still having this issue? the build system changed from waf to gyp. |
I'm at 0.7.2 and can confirm I still have this issue. Edit: Now receiving seg faults as outlined in issue #136 |
Retested with node v0.8.1 and could not reproduce. |
cool - glad this isn't an issue anymore. I'm focusing on #136 now |
I'm having this issue on windows 7, 64-bit with the 32-bit version of node and the 32-bit version of postgresql. I have libpq installed and I checked that it was in the PATH. I tried copying libpq.dll to the same folder as binding.node to no avail. At first the native extension didn't build so I installed VSC++ 2010 and then it built. It still refuses to load however with the same stack trace as above (except the windows equivalent. This is with node 0.8.14 and pg version 0.8.7. The version of postgresql is 9.2.1 (latest stable as of this writing)
After installing VS2010 I got this output:
The error when I ran my code was the same as above, however. Note that just as in the bug above, removing the ".native" from my require "resolves" the issue, it only happens when trying to use the native bindings. As it seems like it might be related to this bug I commented here. |
Getting this on Node 0.10.0/0.8.20 and pg 0.8.8, 64-bit Arch Linux. |
You're using pg version 0.8.8? I believe that's a pretty old version. |
Install postgresql on your machine before installing pg |
I have the same problem as the OP, except I was on 0.10.26. Installing postgresql did the trick. Thanks @avinashega! |
The text was updated successfully, but these errors were encountered: