nodejs / node-gyp

Node.js native addon build tool
MIT License
9.95k stars 1.8k forks source link

windows: platform invalid error #505

Closed samccone closed 10 years ago

samccone commented 10 years ago

Been working on a few windows bugs over the past few days and running into a weird one for sure. I have installed all the deps that you have listed under the windows list.

So here is the stack

windows: 7
64 bit arch
node v0.10.31
npm v1.4.23

gyp file https://github.com/melor/node-posix/blob/master/binding.gyp

C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.Cpp.InvalidPlatform.Targets(23,7): error MSB8007: The Platf
orm for project 'posix.vcxproj' is invalid.  Platform='x64'. You may be seeing this message because you are trying to b
uild a project without a solution file, and have specified a non-default Platform that doesn't exist for this project.
[C:\cygwin64\home\IEguy\repos\node-posix\build\posix.vcxproj]
samccone commented 10 years ago

Fixed with

Downloading http://www.microsoft.com/en-us/download/confirmation.aspx?id=40760

and running

npm install XXX --msvs-version=2013