首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >在Windows上安装DNode

在Windows上安装DNode
EN

Stack Overflow用户
提问于 2012-11-01 00:36:53
回答 1查看 1.1K关注 0票数 3

我试图在Windows764位上安装DNode,安装了MicrosoftVisualWeb2010Express和Python2.7.3。我从国家预防机制得到以下产出:

代码语言:javascript
复制
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

> weak@0.2.1 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! weak@0.2.1 install: `node-gyp rebuild`
npm ERR! `cmd "/c" "node-gyp rebuild"` failed with 1
npm ERR!
npm ERR! Failed at the weak@0.2.1 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++编译器的一个问题。所以我安装了完整的64位版本的.NET

现在,我正在尝试安装7和.NET Framework4 ( ISO ),从DVD: 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将不会安装

有什么想法吗?这里出了什么问题,如何解决?

EN

回答 1

Stack Overflow用户

发布于 2013-05-30 15:20:52

我在一个指出节点-gyp安装说明的论坛上找到了一个答案。所以WindowsVisualC++ 2010是必需的(快捷版可以),Windows 7 64位SDK也是必需的。

请注意此疑难解答提示:“如果安装失败,请尝试卸载您首先安装的任何C++ 2010 x64和x86可再发行版。”

实际上,我通过卸载我的VisualC++ 2010 x64和x86再发行版,然后安装Windows764位SDK,解决了这个问题。然后,我成功地构建了node等等来执行"npm安装dnode“。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/13169415

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档