我正在安装 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 是什么?
最佳答案
看起来 gyp 尝试针对 x64 进行构建(很可能是因为您安装了 node-x64),并且您没有安装 Visual Studio 中的 x64 C++ 编译器。尝试修改 VS 安装以包含 x64 工具链,或尝试使用/安装 32 位 Node 。
关于javascript - 安装 jsdom - Node js 时出现 MS 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26340513/