-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Windows 8 x64 install error #485
Comments
Came upon this yesterday too. There is a discussion here xmppo/node-expat#78 so possibly this is a node-gyp issue. I am new to npm so not smart enough to figure out what to do though |
I'm not sure about node-gyp on windows. I really am no good at offering much support on the windows side of things...if anyone's interested in contribution on that front just lemme know & I'll open the repo up to you. In the mean time, do |
Thanks! pg.js works well. Compilation also successfully executed after specifying the absolute path to the file nan.h. |
Thanks for the reply Brian. I had a bit of a look in the pg project and adding 'node_modules/nan' in the include_dirs array in binding.gyp also did the trick. Perhaps this could be added to the project. It looks to me that the line node -e 'require("nan")' isnt doing anything. When I run this from the command line there is no output.
|
That's strange. |
I'm not so sure this PR fixed everything. I'm still having trouble getting this to compile. |
@paco3346 can we see stout of your current compile? |
This is a clean install of latest x86 node.
|
looks like we still need a publish by @brianc, that version you have has this in binding.gyp:
but this is in master:
|
Ah, I wondered if that was the case. I've used node for a lot of things but never published anything so I'm not too familiar with the publishing procedures. Anyway, thank you for your help sir! I'll check back on this in a day or two. |
Publishing tonight! sorry for the delay |
@paco3346 if you want to see if something is published...this is how I do it $ npm show pg This returns all the published versions of node-postgres (or any package) and the date they were published. You can compare those dates to the dates of the commits and kinda get a feeling for how things are looking compared to the github repo. Another way is to check the "tags" on github. Everything at the tag and before is published at that version. If there are commits after the latest tag they're likely not published in a version to npm. NPM makes this amazingly easy in that when you're working on a module you can do something like this in the module's root directory: $ npm version [major | minor | patch] -m "Bump version" And npm will go and bump the SO really you can do it all in one line: $ npm version minor -m "Bump version" && git push origin master --tags && npm publish
|
Ooh, fancy. Thanks for the pointer! And it looks like everything is building properly now. Thanks again! |
d:\project>npm install pg
npm http GET https://registry.npmjs.org/pg
npm http 304 https://registry.npmjs.org/pg
npm http GET https://registry.npmjs.org/generic-pool/2.0.3
npm http GET https://registry.npmjs.org/buffer-writer/1.0.0
npm http GET https://registry.npmjs.org/nan
npm http 304 https://registry.npmjs.org/generic-pool/2.0.3
npm http 304 https://registry.npmjs.org/buffer-writer/1.0.0
npm http 304 https://registry.npmjs.org/nan
d:\project\node_modules\pg>node "C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin....\node_modules\node-gyp\bin\node-gyp.js" rebuild
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
binding.cc
..\src\binding.cc(3): fatal error C1083: Cannot open include file: 'nan.h': No such file or directory [d:\project\node_modules\pg\build\binding.vcxproj]
gyp ERR! build error
gyp ERR! stack Error:
msbuild
failed with exit code: 1gyp ERR! stack at ChildProcess.onExit (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\build.js:267:23)
gyp ERR! stack at ChildProcess.EventEmitter.emit (events.js:98:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:789:12)
gyp ERR! System Windows_NT 6.2.9200
gyp ERR! command "node" "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" "rebuild"
gyp ERR! cwd d:\project\node_modules\pg
gyp ERR! node -v v0.10.23
gyp ERR! node-gyp -v v0.12.1
gyp ERR! not ok
[email protected] node_modules\pg
├── [email protected]
├── [email protected]
└── [email protected]
d:\project>_
The text was updated successfully, but these errors were encountered: