我正在安装jsdom。我正在关注http://www.steveworkman.com/node-js/2012/installing-jsdom-on-windows/,但我得到了:
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.Cpp.InvalidPlatform
.Targets(23,7): error MSB8007: The Platform for project 'contextify.vcxproj' is
invalid. Platform='x64'. You may be seeing this message because you are tryin
g to build a project without a solution file, and have specified a non-default
Platform that doesn't exist for this project. [c:\wamp\www\node_modules\context
ify\build\contextify.vcxproj]
我能理解为什么我会这样吗?什么是MSB8007?
答案 0 :(得分:1)
看起来gyp尝试为x64构建(很可能是因为你安装了node-x64)并且你没有安装Visual Studio中的x64 C ++ - 编译器。尝试修改VS安装以包含x64工具链,或尝试使用/安装32位节点。