分享

pomelo windows 环境下开发环境搭建

 gljin_cn 2014-05-21
40 回复
#1 {3} benqy2013-3-27 13:58 回复

可惜vs2012不行,我之前还没装2012的时候,先装好了pomelo。现在需要装新版pomelo,但是我电脑上已经是vs2012,安装会报错,难道我要先卸掉vs2012,装回2010么。我在windows下开发,linux部署,在linux下新版倒是没问题。

fantasyni2013-3-27 14:00 回复

这个没什么关系吧,有什么报错吗

mikek2013-10-9 13:29 回复

@fantasyni :我的系统是xp,vs2008,有2010的runtime,python2.7;node0.10.15;安装pomelo时候提示:
npm ERR! error:spawn ENOENT
at erronExecption (child_process.js:980:11
at Process.ChildProcess._handle.onexit(child_process.js:771:34)

请问这个问题该怎么解决呢。

test55661-21 19:08 回复
#2 benqy2013-3-28 09:57 回复

2012编译的时候会提示未能加载visual c++组件 “VCBuild.exe“.我现在开发环境暂时用0.2版

#3 {4} ETiVcn2013-3-28 12:42 回复

VS2010

我是从工具菜单里, 选择VS命令行. 在那里面安装的.

看了一下. CMD带了参数. 所以拿出来了.

%systemroot%\system32\cmd.exe /K "c:\program files (x86)\microsoft visual studio 10.0\vc\bin\vcvars32.bat"

benqy2013-3-28 16:42 回复

哈哈,感谢,打开vs命令行,真的装成功了,开心啊。好评!
enter image description here

benqy2013-3-28 16:43 回复

图片上传貌似不行?算了,反正可以了。

fantasyni2013-3-28 18:30 回复

@benqy 呵呵,图片上传还是建议上传其它相册什么的,再给个链接就好

test55661-21 19:05 回复
#4 benqy2013-3-28 16:44 回复

enter image description here

#5 benqy2013-3-28 17:16 回复

在补充一下windows下的注意事项,初始化项目用的批处理“npm-install.bat",如果运行的时候,报的也是未能加载visual c++组件 “VCBuild.exe“这种错误,一律用vs开发人员命令行工具运行,就可以了。

#6 {2} ETiVcn2013-3-28 18:47 回复

其实只要打开CMD后运行一下vcvars32.bat 这个就可以了。

不用非得开VS。

fantasyni2013-3-29 08:32 回复

那是你设了 path 吧

ETiVcn2013-3-31 22:53 回复

@fantasyni

因为没设path, 所以要输入vcvars32.bat 的完整路径. 上面只是简单叙述罢了.

#7 mountain2013-3-29 11:06 回复

这篇文章很及时啊,我被这个环境以前整了很久。。。。

#8 {2} zzb8412202013-4-9 17:12 回复

pomelo start的时候报错说找不到某个模块,找了半天也没看出来缺什么error

fantasyni2013-4-9 20:02 回复

什么模块

zzb8412202013-4-10 09:30 回复

@fantasyni

Error:No such module
at process.startup.processSignalHandlers.process.on.process.addListener<node.js:468:27>
at object.<anonymous><F:\NodeJS\pomelo_demo\game-server\node_modules\pomelo\node_modules\pomelo-rpc\lib\rpc-server\acceptors\tcp-acceptor.js:164:9>
at Module.compile<module.js:449:26>
at object.Module.
extensions..js<module.js:467:10>
at module.load<module.js:356:32>
at function.module.load<module.js:312:12>
at module.require<module.js:362:17>
at require<module.js:378:17>
at Object.<anonymous><F:\NodeJS\pomelo_demo\game-server\mode_modules\pomelo\mode_modules\pomelo-rpc\lib\rpc-server\server.js:55:30>
at Module.
compile<module.js:449:26>

#9 hccpp2013-4-21 12:28 回复

我也想在win下安装一个开发环境,结果报了一大堆错,慢慢的在修正中....

#10 csk2u2013-4-23 17:38 回复

我的是win7安装成功。
Python2.5X和Python3.X编译失败, Python2.6和2.7安装成功.。

我下载那个lord of pomelo测试,本地loding怎么那么慢的?。谢

#11 galaxysl2013-4-26 11:06 回复

安装错误:node-gyp rebuild failed with 1
环境(win7,python-2.7.4 node-v0.10.5-x64 vs2005)

#12 {3} guokwei2013-4-26 14:46 回复

npm ERR! toobusy@0.2.2 install: node-gyp rebuild
npm ERR! cmd "/c" "node-gyp rebuild" failed with 127
npm ERR!
npm ERR! Failed at the toobusy@0.2.2 install script.
npm ERR! This is most likely a problem with the toobusy 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 toobusy
npm ERR! There is likely additional logging output above.

npm ERR! System Windows_NT 6.1.7601
npm ERR! command "c:\Program Files\nodejs\\node.exe" "c:\Program Files\nod
ejs\node_modules\npm\bin\npm-cli.js" "install" "pomelo"
npm ERR! cwd C:\Users\Administrator
npm ERR! node -v v0.8.5
npm ERR! npm -v 1.1.46
npm ERR! code ELIFECYCLE

求助,请问这是什么错误,谢谢

fantasyni2013-4-26 16:36 回复

你环境是怎么样的?

guokwei2013-4-26 16:41 回复

@fantasyni win7 ,node v0.8.5 , Python2.6.6

RomanticNinja2013-6-13 10:42 回复

哥们,你这个错误解决了吗?是哪儿问题啊

#13 csk2u2013-4-27 02:11 回复

我之前试过nodejs 64的,编译总是出问题,换32的就可以了

#14 guokwei2013-4-27 16:56 回复

If the install fails, try uninstalling any C++ 2010 x64&x86 Redistributable that you have installed first. 可以参考这里

看来是VC++编译器的问题,卸载掉所有相关编译器,重新安装vs2010,安装成功。

#15 geeeknerd2013-4-28 18:07 回复

安装错误

在安装pomelo时候出现错误:
环境windows 7 python 2.7 node 0.10

#16 sunway10162013-5-18 20:20 回复

win7 64位操作系统
nodejs 64安装成功了

#17 lostbarque2013-5-27 17:13 回复

gyp http 200 http:///dist/v0.10.8/node.lib
gyp http 200 http:///dist/v0.10.8/x64/node.lib
C:\Users\AppData\Roaming\npm\node_modules\pomelo\node_modules\pomelo-admin\no

de_modules\v8-profiler\build\profiler.vcxproj(41,46): error MSB4025: 未能加载项
目文件。给
定编码中的字符无效。 第 41 行,位置 46。
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 (D:\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" "D:\Program Files\nodejs\node_modules\npm\node_modu
les\node-gyp\bin\node-gyp.js" "rebuild"
gyp ERR! cwd C:\Users\AppData\Roaming\npm\node_modules\pomelo\node_modules\po
melo-admin\node_modules\v8-profiler
gyp ERR! node -v v0.10.8
gyp ERR! node-gyp -v v0.9.5
gyp ERR! not ok
npm WARN optional dep failed, continuing v8-profiler@3.6.2-1
在此解决方案中一次生成一个项目。若要启用并行生成,请添加“/m”开关。
C:\Users\AppData\Roaming\npm\node_modules\pomelo\node_modules\toobusy\build\t

oobusy.vcxproj(41,46): error MSB4025: 未能加载项目文件。给定编码中的字符无效。
第 41 行,位置 46。
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 (D:\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" "D:\Program Files\nodejs\node_modules\npm\node_modu
les\node-gyp\bin\node-gyp.js" "rebuild"
gyp ERR! cwd C:\Users\AppData\Roaming\npm\node_modules\pomelo\node_modules\to
obusy
gyp ERR! node -v v0.10.8
gyp ERR! node-gyp -v v0.9.5
gyp ERR! not ok
npm ERR! error rolling back Error: ENOTEMPTY, rmdir 'C:\Users\波\AppData\Roaming
\npm\node_modules\pomelo\node_modules\socket.io\node_modules\socket.io-client\li
b\vendor\web-socket-js\flash-src\com\hurlant'
npm ERR! error rolling back pomelo@0.4.0 { [Error: ENOTEMPTY, rmdir 'C:\Users\
波\AppData\Roaming\npm\node_modules\pomelo\node_modules\socket.io\node_modules\s
ocket.io-client\lib\vendor\web-socket-js\flash-src\com\hurlant']
npm ERR! error rolling back errno: 53,
npm ERR! error rolling back code: 'ENOTEMPTY',
npm ERR! error rolling back path: 'C:\Users\AppData\Roaming\npm\node

modules\pomelo\node_modules\socket.io\node_modules\socket.io-client\lib\v
endor\web-socket-js\flash-src\com\hurlant' }
npm ERR! weird error 1
在此解决方案中一次生成一个项目。若要启用并行生成,请添加“/m”开关。
C:\Users\AppData\Roaming\npm\node_modules\pomelo\node_modules\ws\build\buffer

util.vcxproj(41,46): error MSB4025: 未能加载项目文件。给定编码中的字符无效。 第
41 行,位置 46。
C:\Users\AppData\Roaming\npm\node_modules\pomelo\node_modules\ws\build\valida

tion.vcxproj(41,46): error MSB4025: 未能加载项目文件。给定编码中的字符无效。 第
41 行,位置 46。
npm ERR! not ok code 0

win8 64位系统,node.js 0.10.8,vs2010,之前也试过node.js 0.8报的是同样的错误,求教

#18 miaod2013-5-30 19:21 回复

test game server 有些浏览器貌似不兼容的 点了没反应 切换下浏览模式就好了

#19 tontione2013-6-12 15:49 回复

I tried to install pomelo on my windows 7 pro computer.
i had this warnings (sorry, partial french language) :

C:\Users\Administrateur.node-gyp\0.8.9\deps\v8\include\v8.h(183): warning C450
6: aucune définition pour la fonction inline 'v8::Persistent v8::Persistent<
T>::New(v8::Handle)' [M:\Tiry\GitHub\nodist\bin\node_modules\pomelo\node_mod
ules\toobusy\build\toobusy.vcxproj]
with
[
T=v8::Object
]
C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppBuild.targets(991,5):
warning MSB8012: TargetExt(.dll) ne correspond pas à la valeur de la propriété
OutputFile (.node) de Linker. Cela peut entra?ner une génération incorrecte de
votre projet. Pour corriger ce problème, vérifiez que les valeurs des propriété
s $(OutDir), $(TargetName) et $(TargetExt) correspondent à la valeur spécifiée
dans %(Link.OutputFile). [M:\Tiry\GitHub\nodist\bin\node_modules\pomelo\node_mo
dules\toobusy\build\toobusy.vcxproj]
Crúation de la bibliothTque M:\Tiry\GitHub\nodist\bin\node_modules\pomelo\
node_modules\toobusy\build\Release\toobusy.lib et de l'objet M:\Tiry\GitHub\n
odist\bin\node_modules\pomelo\node_modules\toobusy\build\Release\toobusy.exp
Gúnúration de code en cours
Fin de la gúnúration du code
toobusy.vcxproj -> M:\Tiry\GitHub\nodist\bin\node_modules\pomelo\node_modules
\toobusy\build\Release\toobusy.node
bufferutil.cc
C:\Users\Administrateur.node-gyp\0.8.9\deps\v8\include\v8.h(183): warning C450
6: aucune définition pour la fonction inline 'v8::Persistent v8::Persistent<
T>::New(v8::Handle)' [M:\Tiry\GitHub\nodist\bin\node_modules\pomelo\node_mod
ules\ws\build\bufferutil.vcxproj]
with
[
T=v8::Object
]
C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppBuild.targets(991,5):
warning MSB8012: TargetExt(.dll) ne correspond pas à la valeur de la propriété
OutputFile (.node) de Linker. Cela peut entra?ner une génération incorrecte de
votre projet. Pour corriger ce problème, vérifiez que les valeurs des propriété
s $(OutDir), $(TargetName) et $(TargetExt) correspondent à la valeur spécifiée
dans %(Link.OutputFile). [M:\Tiry\GitHub\nodist\bin\node_modules\pomelo\node_mo
dules\ws\build\bufferutil.vcxproj]
Crúation de la bibliothTque M:\Tiry\GitHub\nodist\bin\node_modules\pomelo\
node_modules\ws\build\Release\bufferutil.lib et de l'objet M:\Tiry\GitHub\nod
ist\bin\node_modules\pomelo\node_modules\ws\build\Release\bufferutil.exp
Gúnúration de code en cours
Fin de la gúnúration du code
bufferutil.vcxproj -> M:\Tiry\GitHub\nodist\bin\node_modules\pomelo\node_modu
les\ws\build\Release\bufferutil.node
validation.cc
C:\Users\Administrateur.node-gyp\0.8.9\deps\v8\include\v8.h(183): warning C450
6: aucune définition pour la fonction inline 'v8::Persistent v8::Persistent<
T>::New(v8::Handle)' [M:\Tiry\GitHub\nodist\bin\node_modules\pomelo\node_mod
ules\ws\build\validation.vcxproj]
with
[
T=v8::Object
]
C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppBuild.targets(991,5):
warning MSB8012: TargetExt(.dll) ne correspond pas à la valeur de la propriété
OutputFile (.node) de Linker. Cela peut entra?ner une génération incorrecte de
votre projet. Pour corriger ce problème, vérifiez que les valeurs des propriété
s $(OutDir), $(TargetName) et $(TargetExt) correspondent à la valeur spécifiée
dans %(Link.OutputFile). [M:\Tiry\GitHub\nodist\bin\node_modules\pomelo\node_mo
dules\ws\build\validation.vcxproj]

But the installation finally seems to succeed.
Any idea about this warnings ?
As it say that it could result in a bad generation of my projects (french sentence above), i'm anxious ...

#20 {1} ggaaooppeenngg2013-6-20 21:33 回复

安装的过程中报错
tar.unpack untar error C::……Roaming\npm-cache\request\2.9.203\package.tgz
ERROR: ENOENT, open ''Roaming\npm\node_modules\pomelo\node_modules\cliff\node_modules\winston\'node_modules\request\tests\test-toJSON.js

ggaaooppeenngg2013-6-20 21:33 回复

windows 环境

#21 {2} wangqiuyun2013-7-4 12:00 回复

win7环境component在public/js/lib/build下生成的build.js有乱码怎么办?

youxiachai2013-7-4 19:21 回复

@wangqiuyun 默认打开 utf8 ...

#22 Phoenix2013-8-8 19:56 回复

C:\Users\翔\AppData\Roaming\npm\node_modules\pomelo\node_module
gram Files\nodejs\node_modules\npm\bin\node-gyp-bin\....\node
\bin\node-gyp.js" rebuild
build/binding.sln(1): 解决方案文件 error MSB5014: 无法识别文件格
只能读取版本 7.0 到 9.0 之间(包括这两个版本)的解决方案文件。

这个是啥情况啊, 我win8 X64

#23 hezeyi11262013-8-9 09:55 回复

toobusy.cc
..\toobusy.cc(1): fatal error C1083: 无法打开包括文件:“v8.h”: No such file or
directory
[C:\Users\bai\AppData\Roaming\npm\node_modules\pomelo\node_modules\toobusy\bui
ld\toobusy.vcxproj]
gyp ERR! build error
gyp ERR! stack Error: msbuild 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:99:17)
gyp ERR! stack at Process._handle.onexit (child_process.js:680:10)
gyp ERR! System Windows_NT 6.1.7600
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\bai\AppData\Roaming\npm\node_modules\pomelo\node_modules\t
oobusy
gyp ERR! node -v v0.8.23
gyp ERR! node-gyp -v v0.9.5
gyp ERR! not ok
npm ERR! error rolling back Error: ENOTEMPTY, rmdir 'C:\Users\bai\AppData\Roamin
g\npm\node_modules\pomelo\node_modules\pomelo-loader\test'
npm ERR! error rolling back pomelo@0.5.4 { [Error: ENOTEMPTY, rmdir 'C:\Users\b
ai\AppData\Roaming\npm\node_modules\pomelo\node_modules\pomelo-loader\test']
npm ERR! error rolling back errno: 53,
npm ERR! error rolling back code: 'ENOTEMPTY',
npm ERR! error rolling back path: 'C:\Users\bai\AppData\Roaming\npm\node
_modules\pomelo\node_modules\pomelo-loader\test' }
npm ERR! toobusy@0.2.2 install: node-gyp rebuild
npm ERR! cmd "/c" "node-gyp rebuild" failed with 1
npm ERR!
npm ERR! Failed at the toobusy@0.2.2 install script.
npm ERR! This is most likely a problem with the toobusy 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 toobusy
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\nod
ejs\node_modules\npm\bin\npm-cli.js" "install" "-g" "pomelo"
npm ERR! cwd C:\Program Files\Microsoft Visual Studio 10.0\VC
npm ERR! node -v v0.8.23
npm ERR! npm -v 1.2.18
npm ERR! code ELIFECYCLE
npm ERR! Error: ENOENT, lstat 'C:\Users\bai\AppData\Roaming\npm\node_modules\pom
elo\node_modules\pomelo-rpc\node_modules\socket.io-client\node_modules\active-x-
obfuscator\node_modules\zeparser\benchmark.html'
npm ERR! If you need help, you may report this log at:
npm ERR! http://github.com/isaacs/npm/issues
npm ERR! or email it to:
npm ERR! npm-@googlegroups.com

npm ERR! System Windows_NT 6.1.7600
npm ERR! command "C:\Program Files\nodejs\\node.exe" "C:\Program Files\nod
ejs\node_modules\npm\bin\npm-cli.js" "install" "-g" "pomelo"
npm ERR! cwd C:\Program Files\Microsoft Visual Studio 10.0\VC
npm ERR! node -v v0.8.23
npm ERR! npm -v 1.2.18
npm ERR! path C:\Users\bai\AppData\Roaming\npm\node_modules\pomelo\node_modules\
pomelo-rpc\node_modules\socket.io-client\node_modules\active-x-obfuscator\node_m
odules\zeparser\benchmark.html
npm ERR! fstream_path C:\Users\bai\AppData\Roaming\npm\node_modules\pomelo\node_
modules\pomelo-rpc\node_modules\socket.io-client\node_modules\active-x-obfuscato
r\node_modules\zeparser\benchmark.html
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! fstream_stack C:\Program Files\nodejs\node_modules\npm\node_modules\fst
ream\lib\writer.js:284:26
npm ERR! fstream_stack Object.oncomplete (fs.js:297:15)
bufferutil.cc
npm http 304 https://registry./socket.io-client/0.9.11
..\src\bufferutil.cc(7): fatal error C1083: 无法打开包括文件:“v8.h”: No such f
ile or di
rectory [C:\Users\bai\AppData\Roaming\npm\node_modules\pomelo\node_modules\ws\b
uild\bufferutil.vcxproj]
npm http GET https://registry./log4js
npm http 304 https://registry./pkginfo
validation.cc
..\src\validation.cc(7): fatal error C1083: 无法打开包括文件:“v8.h”: No such f
ile or di
rectory [C:\Users\bai\AppData\Roaming\npm\node_modules\pomelo\node_modules\ws\b
uild\validation.vcxproj]
我的环境 win7 x86

#24 getpro2013-8-14 15:33 回复

enter image description here

这是个什么情况?
node:8.22
npm:1.2.14
python:2.7
vc++:vs2010
这个谁能告诉我?

#25 hezeyi11262013-8-20 11:15 回复

求告诉这是怎么回事啊

]错误信息

#26 {1} miaodadao2013-8-29 18:57 回复

windows上报错,无法安装,各种换node版本,无效

miaodadao2013-9-14 16:33 回复

pomelo 0.6可以正常安装了

#27 miaodadao2013-9-14 16:46 回复

按照本文提到的方法操作,无法启动game-server,web-server已经能成功启动了

C:\Users\miaodadao\Desktop\pomelo_demo\game-server>pomelo start
[2013-09-14 16:44:34.158] [INFO] pomelo - [C:\Users\miaodadao\Desktop\pomelo_dem
o\game-server\node_modules\pomelo\lib\application.js] application inited: "maste
r-server-1"

Error: %1 is not a valid Win32 application.

C:\Users\miaodadao\Desktop\pomelo_demo\game-server\node_modules\pomelo\node_modu
les\pomelo-admin\node_modules\ndump\build\Release\ndump.node
at Module.load (module.js:356:32)
at Function.Module.load (module.js:312:12)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at Object.<anonymous> (C:\Users\miaodadao\Desktop\pomelo_demo\game-server\no
de_modules\pomelo\node_modules\pomelo-admin\node_modules\ndump\include.js:3:14)
at Module.
compile (module.js:456:26)
at Object.Module.extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module.
load (module.js:312:12)
at Module.require (module.js:364:17)

#28 zhaoml2013-9-17 16:37 回复

在IE浏览器下,总是报pomelo为空或不是对象,请问下这是什么原因。在chrome下就不会有

#29 {6} miaodadao2013-9-23 13:58 回复

如此,太多的问题纠结在安装和初次运行上。
呃~~ 貌似有点影响评估者的信心。

fantasyni2013-9-23 14:54 回复

@miaodadao 在windows下面,本来就不是推荐的

miaodadao2013-9-25 09:00 回复

@fantasyni 要么最好别支持,要么就好好支持。

fantasyni2013-9-25 10:15 回复

@miaodadao pomelo 好好用,就别用windows啊,装个虚拟机有那么困难吗

puncha2013-10-19 13:50 回复

@fantasyni 宣传的时候说跨平台,支持windows,现在又说windows不推荐,到底是如何!

fantasyni2013-10-21 08:37 回复

@puncha windows 是支持的啊,只是比linux装起来麻烦点

kun20291-15 11:30 回复

能跑起来的。 我都跑起来了 和nodejs版本也有关系 换一个 重启一下就好了

#30 sedateOcean2013-10-8 16:02 回复

C:\Users\Administrator.node-gyp\0.8.21\deps\v8\include\v8.h(183): warning C450
6: 内联函数“v8::Persistent<T> v8::Persistent<T>::New(v8::Handle<T>)”没有定义 [
C:\Users\
Administrator\AppData\Roaming\npm\node_modules\pomelo\node_modules\ws\build\buf
ferutil.vcxproj]
with
[
T=v8::Object
]
正在创建库 C:\Users\Administrator\AppData\Roaming\npm\node_modules\pomelo\n
ode_
modules\pomelo-admin\node_modules\ndump\build\Release\ndump.lib 和对象 C:\User
s\
Administrator\AppData\Roaming\npm\node_modules\pomelo\node_modules\pomelo-adm
in\node_modules\ndump\build\Release\ndump.exp
正在生成代码
已完成代码的生成
正在创建库 C:\Users\Administrator\AppData\Roaming\npm\node_modules\pomelo\n
ode_
modules\ws\build\Release\bufferutil.lib 和对象 C:\Users\Administrator\AppData\
Ro
aming\npm\node_modules\pomelo\node_modules\ws\build\Release\bufferutil.exp
正在生成代码
已完成代码的生成

bson@0.2.1 install C:\Users\Administrator\AppData\Roaming\npm\node_modules\pom
elo\node_modules\pomelo-admin\node_modules\mongodb\node_modules\bson
(node-gyp rebuild 2> builderror.log) || (exit 0)
C:\Users\Administrator\AppData\Roaming\npm\node_modules\pomelo\node_modules\pome
lo-admin\node_modules\mongodb\node_modules\bson>node "C:\Program Files (x86)\nod
ejs\node_modules\npm\bin\node-gyp-bin\....\node_modules\node-gyp\bin\node-gyp.
js" rebuild
ndump.vcxproj -> C:\Users\Administrator\AppData\Roaming\npm\node_modules\pome
lo\node_modules\pomelo-admin\node_modules\ndump\build\Release\ndump.node
bufferutil.vcxproj -> C:\Users\Administrator\AppData\Roaming\npm\node_modules
\pomelo\node_modules\ws\build\Release\bufferutil.node
validation.cc
C:\Users\Administrator.node-gyp\0.8.21\deps\v8\include\v8.h(183): warning C450
npm kerberos.cc
bson.cc
6: 内联函数“v8::Persistent<T> v8::Persistent<T>::New(v8::Handle<T>)”没有定义 [
C:\Users\
worker.cc
Administrator\AppData\Roaming\npm\node_modules\pomelo\node_modules\ws\build\val
security_credentials.cc
idation.vcxproj]
security_buffer.cc
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\xlocale(323): wa
rning C4530: 使用了 C++ 异常处理程序,但未启用展开语义。请指定 /EHsc [C:\Users\A
dministrator\AppData\
Roaming\npm\node_modules\pomelo\node_modules\pomelo-admin\node_modules\mongodb\
node_modules\bson\build\bson.vcxproj]
with
[
http T=v8::Object
C:\Users\Administrator.node-gyp\0.8.21\deps\v8\include\v8.h(178): warning C450
C:\Users\Administrator.node-gyp\0.8.21\deps\v8\include\v8.h(183): warning C450
]
6: 内联函数“v8::Persistent<T> v8::Persistent<T>::New(v8::Handle<T>)”没有定义 [
C:\Users\
6: 内联函数“v8::Persistent<T> v8::Persistent<T>::New(v8::Handle<T>)”没有定义
[C:\Users\
Administrator\AppData\Roaming\npm\node_modules\pomelo\node_modules\pomelo-admin
Administrator\AppData\Roaming\npm\node_modules\pomelo\node_modules\pomelo-admin
\node_modules\mongodb\node_modules\kerberos\build\kerberos.vcxproj]
\node_modules\mongodb\node_modules\bson\build\bson.vcxproj]
304 with
with
[
[
T=v8::Object
T=v8::Object
https://registry./active-x-obfuscator/0.0.1
]
]
security_buffer_descriptor.cc
C:\Users\Administrator.node-gyp\0.8.21\deps\v8\include\v8.h(183): warning C450
C:\Users\Administrator.node-gyp\0.8.21\deps\v8\include\v8.h(183): warning C450
6: 内联函数“v8::Persistent<T> v8::Persistent<T>::New(v8::Handle<T>)”没有定义 [
C:\Users\
Administrator\AppData\Roaming\npm\node_modules\pomelo\node_modules\pomelo-admin
6: 内联函数“v8::Persistent<T> v8::Persistent<T>::New(v8::Handle<T>)”没有定义 [
C:\Users\
\node_modules\mongodb\node_modules\kerberos\build\kerberos.vcxproj]
Administrator\AppData\Roaming\npm\node_modules\pomelo\node_modules\pomelo-admin
\node_modules\mongodb\node_modules\bson\build\bson.vcxproj]
npm with
with
[
[
T=v8::Object
T=v8::FunctionTemplate
]
]
C:\Users\Administrator.node-gyp\0.8.21\deps\v8\include\v8.h(183): warning C450
http6: 内联函数“v8::Persistent<T> v8::Persistent<T>::New(v8::Handle<T>)”没有定
义 [C:\Users\
Administrator\AppData\Roaming\npm\node_modules\pomelo\node_modules\pomelo-admin
\node_modules\mongodb\node_modules\kerberos\build\kerberos.vcxproj]
with
304 [
T=v8::FunctionTemplate
]
https://registry./xmlhttprequest/1.4.2
security_context.cc
npm http 304 https://registry./uglify-js/1.2.5

win7下安装 出现类似提示。
我是3.5升级到最新版,出现这样的提示。
之前的旧版本是可以用的。
vs2010重新安装过,问题依旧。

#31 sedateOcean2013-10-8 16:21 回复

正在生成代码
已完成代码的生成
bson.vcxproj -> C:\Users\Administrator\AppData\Roaming\npm\node_modules\pomel
o\node_modules\pomelo-admin\node_modules\mongodb\node_modules\bson\build\Rele
ase\bson.node
C:\Users\Administrator\AppData\Roaming\npm\pomelo -> C:\Users\Administrator\AppD
ata\Roaming\npm\node_modules\pomelo\bin\pomelo
pomelo@0.6.5 C:\Users\Administrator\AppData\Roaming\npm\node_modules\pomelo
├── crc@0.2.0
├── pomelo-monitor@0.3.5
├── pomelo-protocol@0.1.2
├── seq-queue@0.0.5
├── pomelo-loader@0.0.4
├── async@0.2.5
├── mkdirp@0.3.3
├── node-bignumber@1.2.1
├── pomelo-protobuf@0.4.0
├── pomelo-logger@0.1.1 (log4js@0.6.7)
├── toobusy@0.2.2 (bindings@1.0.0)
├── cliff@0.1.8 (eyes@0.1.8, colors@0.6.2, winston@0.6.2)
├── ws@0.4.25 (tinycolor@0.0.1, options@0.0.5, commander@0.6.1)
├── pomelo-rpc@0.2.1 (stream-pkg@0.0.5, node-uuid@1.4.0, pomelo-logger@0.1.0,
socket.io-client@0.9.16)
├── socket.io@0.9.16 (base64id@0.1.0, policyfile@0.0.4, redis@0.7.3, socket.i
o-client@0.9.16)
└── pomelo-admin@0.2.3 (pomelo-monitor@0.3.7, socket.io@0.9.13, pomelo-schedu
le@0.3.4, ndump@0.0.2, socket.io-client@0.9.11, mongodb@1.3.12)

最后出现的是这些。
但是pomelo不可用

#32 tnsnbbs2013-10-11 11:51 回复

我安装的时候出现了
gyp ERR! stack Error: spawn ENOENT

错误
重新设置了python的环境变量就好了

#33 {1} roytan2013-10-15 21:19 回复

今天在新电脑上,win7 64bit, vs2012 x64, python2.7.3 x64环境下,前面都顺利.
到最后一步出错,bin\component.bat

返回:
error: missing component.json

这个文件哪里去找?

fantasyni2013-10-15 22:03 回复

@roytan

在 web-server 目录下面

#34 outman20082013-12-26 18:11 回复

求哪位老大百忙之中抽出1天时间,
做一个windows环境 和 linux 环境下 的傻瓜安装包,
其实只需要一个压缩包+批处理 命令 就搞定了。

作为新人本想学习下先进的技术,
却不成想到折腾了3天还是没装上。。。

面对这么多人提了这么多问题,解答问题花的时间都不知道可以做多少个框架了。。。。

#35 {5} imria2013-12-30 23:12 回复

什么玩意哦,我的win32,win64,os x下都装不了,而且错误都不一样,

装其他的包都没问题,就这个这么折腾,哎~能兼容一点吗

py87652013-12-31 09:11 回复

报什么错误

imria2013-12-31 09:40 回复

@py8765 太多了,不想弄了

py87652013-12-31 09:41 回复

@imria 建议还是在linux系统中安装,比较省事。

imria2013-12-31 09:48 回复

@py8765 在os x下面是在运行node-gyp 的时候说没有权限,我这个时候sudo node-gyp ...又说找不到命令

py87652013-12-31 09:49 回复

@imria 重新安装一下npm install node-gyp -g

#36 {1} Alfie1-17 09:25 回复

什么情况?win7 ; node: v0.10.24; python2.7.6 ;vc 2010 express
enter image description here

pkkfcuso4-6 23:02 回复

你这个问题有解决么?

#37 {1} swordfishx1-24 08:04 回复

enter image description here

一样的问题,求解

pkkfcuso4-6 23:01 回复

解决这个问题么?

#38 ao1shib1233-6 09:58 回复

支持。

#39 zlxhb09083-31 12:12 回复

enter image description here

求助,npm install -g component的时候报错

#40 louis4-10 18:18 回复

有MAC 版的么= =。。

    本站是提供个人知识管理的网络存储空间,所有内容均由用户发布,不代表本站观点。请注意甄别内容中的联系方式、诱导购买等信息,谨防诈骗。如发现有害或侵权内容,请点击一键举报。
    转藏 分享 献花(0

    0条评论

    发表

    请遵守用户 评论公约

    类似文章 更多