关于node.js:npm无法在Windows中安装jsdom

npm not installing jsdom in Windows

我用jQuery在node.js中构建了一个应用程序,但是当我尝试执行时,它说它找不到模块jsdom,因此,即使我不明白为什么安装jQuery并没有安装此依赖项,我还是手动运行npm install jsdom 得到此错误信息:

MSBUILD : error MSB3428: Could not load the Visual C++ component
"VCBuild.exe". To fix this, 1) install the .NET Framework 2.0 SDK, 2)
install Microsoft Visual Studio 2005 or 3) add the location of t he
component to the system path if it is installed elsewhere.
[C:\\Sites\\myapp\
ode_modules\\jsdom\
ode_modules\\contextify\\build\\binding.sln]

我尝试了第一种选择,但仍然没有帮助。 我是什么(错)?


您不是唯一在Windows上安装jsdom的人。 您可以尝试以下说明:
http://www.steveworkman.com/node-js/2012/installing-jsdom-on-windows/

或使用更易于在Windows上安装并完成类似工作的Cheerio。