javascript - 安装 jsdom - Node js 时出现 MS 错误

标签 javascript node.js jsdom node.js-domains

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

相关文章:

javascript - 如何测试引用 html 文件中的 html 元素的 JavaScript 代码

javascript - 使用 Reactjs 的 Axios Post 表单

javascript - dojo:应用程序页眉/页脚栏

linux - Amazon AWS EC2 Linux 上的 Node-gyp Connect-mongo

javascript - Node.js 似乎在循环后没有释放内存

reactjs - 我可以在前端使用JSDom来解析html吗

javascript - 动态更改 SVG 元素,

javascript - 对象内的 XMLHttpRequest : how to keep the reference to "this"

node.js - 使用 exec() 创建 child_process 时从子进程向父进程发送消息

node.js - 如何使用KoaJS读取正在上传的文件?