Node.js Topojson生成在Windows中失败

Node.js Topojson生成在Windows中失败,node.js,npm,Node.js,Npm,我试着按照Mike的教程学习如何在- 我已经能够在Windows上很好地使用Node。我正在尝试使用命令“npm install-g topojson”安装topojson 我发现了错误- MSBUILD : error MSB4132: The tools version "2.0" is unrecognized. Available too ls versions are "4.0". gyp ERR! build error gyp ERR! stack Error: `C:\Windo

我试着按照Mike的教程学习如何在-

我已经能够在Windows上很好地使用Node。我正在尝试使用命令“npm install-g topojson”安装topojson

我发现了错误-

MSBUILD : error MSB4132: The tools version "2.0" is unrecognized. Available too
ls versions are "4.0".
gyp ERR! build error
gyp ERR! stack Error: `C:\Windows\Microsoft.NET\Framework\v4.0.30319\msbuild.exe
` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onExit (C:\Program Files\nodejs\node_modules\
npm\node_modules\node-gyp\lib\build.js:267:23)
gyp ERR! stack     at ChildProcess.EventEmitter.emit (events.js:98:17)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:789:
12)
gyp ERR! System Windows_NT 6.2.9200
gyp ERR! command "node" "C:\\Program Files\\nodejs\\node_modules\\npm\\node_modu
les\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd C:\Users\sumod_pawgi\AppData\Roaming\npm\node_modules\topojson\node
_modules\d3\node_modules\jsdom\node_modules\contextify
gyp ERR! node -v v0.10.16
gyp ERR! node-gyp -v v0.10.9
gyp ERR! not ok
npm ERR! weird error 1
npm ERR! not ok code 0
我使用的是64位Windows8


因此,看起来.NET版本之间存在一些不匹配。如何获得认可的工具版本?我在这里遗漏了什么吗?

也有类似的问题。我安装了Python2.5 64位,作为gdal工具包的一部分。卸载所有python安装。安装python 2.7 x86以及nodejs x86。再次尝试使用npm安装topojson

这对我有用