我想在Windows 7 64位上安裝DNode,安裝Microsoft Visual C++ 2010 Express和Python 2.7.3。 我得到下面的輸出從NPM:在Windows上安裝DNode
C:\Program Files\nodejs>npm install dnode
npm http GET https://registry.npmjs.org/dnode
npm http 304 https://registry.npmjs.org/dnode
npm http GET https://registry.npmjs.org/jsonify
npm http GET https://registry.npmjs.org/weak
npm http GET https://registry.npmjs.org/dnode-protocol
npm http 304 https://registry.npmjs.org/jsonify
npm http 304 https://registry.npmjs.org/weak
npm http 304 https://registry.npmjs.org/dnode-protocol
npm http GET https://registry.npmjs.org/traverse
npm http GET https://registry.npmjs.org/bindings
npm http 304 https://registry.npmjs.org/bindings
npm http 304 https://registry.npmjs.org/traverse
> [email protected] install C:\Program Files\nodejs\node_modules\dnode\node_modules\weak
> node-gyp rebuild
C:\Program Files\nodejs\node_modules\dnode\node_modules\weak>node "C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.Cpp.InvalidPlatform.Targets(23,7): error MSB8007: The Platform for project 'weakref.vcxproj' is invalid. Platform='x64'. You may be seeing this message because you are trying to build a project without a solution file, and have specified a non-default Platform that doesn't exist for this project. [C:\Program Files\nodejs\node_modules\dnode\node_modules\weak\build\weakref.vcxproj]
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:236:23)
gyp ERR! stack at ChildProcess.EventEmitter.emit (events.js:99:17)
gyp ERR! stack at Process._handle.onexit (child_process.js:678:10)
gyp ERR! System Windows_NT 6.1.7600
gyp ERR! command "node" "C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd C:\Program Files\nodejs\node_modules\dnode\node_modules\weak
gyp ERR! node -v v0.8.14
gyp ERR! node-gyp -v v0.7.1
gyp ERR! not ok
npm ERR! [email protected] install: `node-gyp rebuild`
npm ERR! `cmd "/c" "node-gyp rebuild"` failed with 1
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is most likely a problem with the weak package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-gyp rebuild
npm ERR! You can get their info via:
npm ERR! npm owner ls weak
npm ERR! There is likely additional logging output above.
npm ERR! System Windows_NT 6.1.7600
npm ERR! command "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "dnode"
npm ERR! cwd C:\Program Files\nodejs
npm ERR! node -v v0.8.14
npm ERR! npm -v 1.1.65
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! C:\Program Files\nodejs\npm-debug.log
npm ERR! not ok code 0
C:\Program Files\nodejs>python -- version
Python 2.7.3
命令提示符運行作爲管理員。
「項目平臺'weakref.vcxproj'無效。」? 這是一個32位/ 64位的問題?
這似乎是C++編譯器的問題。 因此,我安裝的.NET
完整64位版本,我現在想從DVD安裝Microsoft Windows SDK的Windows 7和.NET Framework 4(ISO): x64的ISO文件GRMSDKX_EN_DVD.iso從http://www.microsoft.com/en-us/download/details.aspx?id=8442
但安裝失敗,出現以下錯誤:有關更多信息,請參閱Samples \ Setup \ HTML \ ConfigDetails.htm文檔。
然後我設置的註冊表和驗證根據此建議的TEM變量後,再次嘗試:http://ctrlf5.net/?p=184
同樣,SDK將不會安裝
任何想法就錯在這裏,以及如何解決?