0

我正在安装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?

4

1 回答 1

1

看起来 gyp 尝试为 x64 构建(很可能是因为您安装了 node-x64)并且您没有安装 Visual Studio 中的 x64 C++-Compiler。尝试修改 VS 安装以包含 x64 工具链,或尝试使用/安装 32 位节点。

于 2014-10-13T20:11:03.280 回答