Build fails
71104 opened this issue · 3 comments
71104 commented
Windows 7 Professional x64, node.js v0.10.15, Python 2.7.5, Visual Studio 2010 Express, node-gyp installed right now through npm
. I have downloaded node-sqlserver through this link: https://github.com/WindowsAzure/node-sqlserver/archive/v0.2.1.zip
And this is my output:
$ node-gyp build
gyp info it worked if it ends with ok
gyp info using node-gyp@0.12.2
gyp info using node@0.10.15 | win32 | x64
gyp info spawn C:\windows\Microsoft.NET\Framework\v4.0.30319\msbuild.exe
gyp info spawn args [ 'build/binding.sln',
gyp info spawn args '/clp:Verbosity=minimal',
gyp info spawn args '/nologo',
gyp info spawn args '/p:Configuration=Release;Platform=x64' ]
Building the projects in this solution one at a time. To enable parallel build,
please add the "/m" switch.
Project file contains ToolsVersion="12.0". This toolset may be unknown or missi
ng, in which case you may be able to resolve this by installing the appropriate
version of MSBuild, or the build may have been forced to a particular ToolsVer
sion for policy reasons. Treating the project as if it had ToolsVersion="4.0".
For more information, please see http://go.microsoft.com/fwlink/?LinkId=291333.
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.Cpp.InvalidPlatform
.Targets(23,7): error MSB8007: The Platform for project 'sqlserver.vcxproj' is
invalid. Platform='x64'. You may be seeing this message because you are trying
to build a project without a solution file, and have specified a non-default P
latform that doesn't exist for this project. [c:\Users\Alberto\Documents\msnode
sql\build\sqlserver.vcxproj]
gyp ERR! build error
gyp ERR! stack Error: `C:\windows\Microsoft.NET\Framework\v4.0.30319\msbuild.exe
` failed with exit code: 1
gyp ERR! stack at ChildProcess.onExit (c:\Users\Alberto\AppData\Roaming\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.1.7601
gyp ERR! command "c:\\Program Files\\nodejs\\node.exe" "c:\\Users\\Alberto\\AppD
ata\\Roaming\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "build"
gyp ERR! cwd c:\Users\Alberto\Documents\msnodesql
gyp ERR! node -v v0.10.15
gyp ERR! node-gyp -v v0.12.2
gyp ERR! not ok
m3kka commented
Same here.
Royedc4 commented
and same here
szimmers commented
i couldn't get it built with VS 2010 or 2012, but did get it working with 2013 Express and 32-bit node. this stackoverflow thread may be helpful:
http://stackoverflow.com/questions/19661811/unable-to-download-msnodesql-0-2-1-v0-10-x64-msi