1
我正在嘗試關注如何在-上創建地圖的Mike教程。Topojson在Windows中編譯失敗
我已經能夠很好地在Windows上使用節點。我試圖用命令安裝topojson - 「故宮安裝-g 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位Windows 8
所以看起來像.NET版本之間存在一些不匹配。我如何獲得認可的工具版本?我在這裏錯過了什麼嗎?