Node.js是跨平台的吗?在mindnode windowss下运行效果好吗

Node.js是跨平台的吗?在windows下运行效果好吗_百度知道
Node.js是跨平台的吗?在windows下运行效果好吗
  v8不是webkit的js解析引擎,是google自己开发的一套js解析引擎。chrome没有使用webkit的js解析引擎而是自己研发了V8,请搞清楚这个再回答
资深电脑人
其他类似问题
为您推荐:
跨平台的相关知识
等待您来回答
下载知道APP
随时随地咨询
出门在外也不愁pomelo windows 环境下开发环境搭建 - Pomelo Club
[置顶]pomelo windows 环境下开发环境搭建
本文主要介绍下 windows 下跑通 pomelo 简单例子的过程 开发前提条件: Windows系统,请确保你的Windows系统包含源码编译工具。Node.js的源码主要由C++代码和JavaScript代码构成,但是却用工具来做源码的项目管理,该工具采用Python语言写成的。在Windows平台上,Node.js采用gyp来生成Visual Studio Solution文件,最终通过VC++的编译器将其编译为二进制文件。所以,在安装之前请确保你的Windows系统满足以下两个条件:* (2.5&version&3.0)。* VC++ 编译器,包含在中(VC++ 2010 Express亦可)
node 版本 0.8.22
node 版本问题
node 版本建议用
版本,0.12.x 版本有问题!
pomelo 版本 0.3.5 1:安装 pomelo
npm install -g pomelo
2:试试 pomelo 安装是否ok
pomelo --help
3:开始进行开发
pomelo init pomelo_demo
这个就会创建基本的pomelo开发环境,包括 game-server 和 web-server 文件夹
4:接下来就是安装 node modules 直接在工程目录下面,敲入
npm-install.bat
即可完成安装
5:然后进入 game-server 目录下 敲入
pomelo start
即可完成服务端代码的启动
6:然后进入 web-server 目录下 先安装 components 客户端库
(安装前确保已经装有 component,使用 npm install -g component 来安装)敲入
bin\component.bat
然后在 web-server 目录下
即可启动 web-server 打开浏览器,点击 test game server 按钮即可完成测试
16:18重新编辑
可惜vs2012不行,我之前还没装2012的时候,先装好了pomelo。现在需要装新版pomelo,但是我电脑上已经是vs2012,安装会报错,难道我要先卸掉vs2012,装回2010么。我在windows下开发,linux部署,在linux下新版倒是没问题。
这个没什么关系吧,有什么报错吗
@ :我的系统是xp,vs2008,有2010的runtime,python2.7;node0.10.15;安装pomelo时候提示:npm ERR!
error:spawn ENOENT
erronExecption (child_process.js:980:11
Process.ChildProcess._handle.onexit(child_process.js:771:34)
请问这个问题该怎么解决呢。
2012编译的时候会提示未能加载visual c++组件 “VCBuild.exe“.我现在开发环境暂时用0.2版
我是从工具菜单里, 选择VS命令行. 在那里面安装的.
看了一下. CMD带了参数. 所以拿出来了.
%systemroot%\system32\cmd.exe /K &c:\program files (x86)\microsoft visual studio 10.0\vc\bin\vcvars32.bat&
哈哈,感谢,打开vs命令行,真的装成功了,开心啊。好评!
图片上传貌似不行?算了,反正可以了。
@ 呵呵,图片上传还是建议上传其它相册什么的,再给个链接就好
在补充一下windows下的注意事项,初始化项目用的批处理“npm-install.bat&,如果运行的时候,报的也是未能加载visual c++组件 “VCBuild.exe“这种错误,一律用vs开发人员命令行工具运行,就可以了。
其实只要打开CMD后运行一下vcvars32.bat 这个就可以了。
不用非得开VS。
那是你设了 path 吧
因为没设path, 所以要输入vcvars32.bat 的完整路径. 上面只是简单叙述罢了.
这篇文章很及时啊,我被这个环境以前整了很久。。。。
pomelo start的时候报错说找不到某个模块,找了半天也没看出来缺什么
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&
我也想在win下安装一个开发环境,结果报了一大堆错,慢慢的在修正中....
我的是win7安装成功。 Python2.5X和Python3.X编译失败, Python2.6和2.7安装成功.。
我下载那个lord of pomelo测试,本地loding怎么那么慢的?。谢
安装错误:node-gyp rebuild failed with 1环境(win7,python-2.7.4 node-v0.10.5-x64 vs2005)
install: node-gyp rebuildnpm ERR! cmd &/c& &node-gyp rebuild& failed with 127npm ERR!npm ERR! Failed at the
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 rebuildnpm ERR! You can get their info via:npm ERR!
npm owner ls toobusynpm ERR! There is likely additional logging output above.
npm ERR! System Windows_NT 6.1.7601npm ERR! command &c:\\Program Files\\nodejs\\\\node.exe& &c:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js& &install& &pomelo&npm ERR! cwd C:\Users\Administratornpm ERR! node -v v0.8.5npm ERR! npm -v 1.1.46npm ERR! code ELIFECYCLE
求助,请问这是什么错误,谢谢
你环境是怎么样的?
@ win7 ,node v0.8.5 , Python2.6.6
哥们,你这个错误解决了吗?是哪儿问题啊
我之前试过nodejs 64的,编译总是出问题,换32的就可以了
If the install fails, try uninstalling any C++
Redistributable that you have installed first.
看来是VC++编译器的问题,卸载掉所有相关编译器,重新安装vs2010,安装成功。
在安装pomelo时候出现错误:环境windows 7 python 2.7 node 0.10
请看我写的
win7 64位操作系统nodejs 64安装成功了
请问 nodejs 具体版本,python 具体版本
@node --versionv0.10.7
python --versionPython 2.7.3
@ 谢谢,已经成功,正在学习chatofpomelo-websocket,发现game server 起不来,但是hello world可以,你遇到过这个问题么
gyp http 200 gyp http 200 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 errorgyp ERR! stack Error: C:\Windows\Microsoft.NET\Framework\v4.0.30319\msbuild.exe failed with exit code: 1gyp 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.9200gyp ERR! command &node& &D:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js& &rebuild&gyp ERR! cwd C:\Users\AppData\Roaming\npm\node_modules\pomelo\node_modules\pomelo-admin\node_modules\v8-profilergyp ERR! node -v v0.10.8gyp ERR! node-gyp -v v0.9.5gyp ERR! not oknpm WARN optional dep failed, continuing 在此解决方案中一次生成一个项目。若要启用并行生成,请添加“/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 errorgyp ERR! stack Error: C:\Windows\Microsoft.NET\Framework\v4.0.30319\msbuild.exe failed with exit code: 1gyp 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.9200gyp ERR! command &node& &D:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js& &rebuild&gyp ERR! cwd C:\Users\AppData\Roaming\npm\node_modules\pomelo\node_modules\toobusygyp ERR! node -v v0.10.8gyp ERR! node-gyp -v v0.9.5gyp ERR! not oknpm ERR! error rolling back Error: ENOTEMPTY, rmdir &C:\Users\波\AppData\Roaming\npm\node_modules\pomelo\node_modules\socket.io\node_modules\socket.io-client\lib\vendor\web-socket-js\flash-src\com\hurlant&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\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\\nodemodules\\pomelo\\node_modules\\socket.io\\node_modules\\socket.io-client\\lib\\vendor\\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报的是同样的错误,求教
test game server 有些浏览器貌似不兼容的 点了没反应 切换下浏览模式就好了
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 C4506: aucune définition pour la fonction inline &v8::Persistent v8::Persistent&T&::New(v8::Handle)& [M:\Tiry\GitHub\nodist\bin\node_modules\pomelo\node_modules\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 devotre projet. Pour corriger ce problème, vérifiez que les valeurs des propriétés $(OutDir), $(TargetName) et $(TargetExt) correspondent à la valeur spécifiéedans %(Link.OutputFile). [M:\Tiry\GitHub\nodist\bin\node_modules\pomelo\node_modules\toobusy\build\toobusy.vcxproj]Cr?ation de la biblioth?que M:\Tiry\GitHub\nodist\bin\node_modules\pomelo\node_modules\toobusy\build\Release\toobusy.lib et de l&objet M:\Tiry\GitHub\nodist\bin\node_modules\pomelo\node_modules\toobusy\build\Release\toobusy.expG?n?ration de code en coursFin de la g?n?ration du codetoobusy.vcxproj -& M:\Tiry\GitHub\nodist\bin\node_modules\pomelo\node_modules\toobusy\build\Release\toobusy.nodebufferutil.ccC:\Users\Administrateur.node-gyp\0.8.9\deps\v8\include\v8.h(183): warning C4506: aucune définition pour la fonction inline &v8::Persistent v8::Persistent&T&::New(v8::Handle)& [M:\Tiry\GitHub\nodist\bin\node_modules\pomelo\node_modules\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 devotre projet. Pour corriger ce problème, vérifiez que les valeurs des propriétés $(OutDir), $(TargetName) et $(TargetExt) correspondent à la valeur spécifiéedans %(Link.OutputFile). [M:\Tiry\GitHub\nodist\bin\node_modules\pomelo\node_modules\ws\build\bufferutil.vcxproj]Cr?ation de la biblioth?que M:\Tiry\GitHub\nodist\bin\node_modules\pomelo\node_modules\ws\build\Release\bufferutil.lib et de l&objet M:\Tiry\GitHub\nodist\bin\node_modules\pomelo\node_modules\ws\build\Release\bufferutil.expG?n?ration de code en coursFin de la g?n?ration du codebufferutil.vcxproj -& M:\Tiry\GitHub\nodist\bin\node_modules\pomelo\node_modules\ws\build\Release\bufferutil.nodevalidation.ccC:\Users\Administrateur.node-gyp\0.8.9\deps\v8\include\v8.h(183): warning C4506: aucune définition pour la fonction inline &v8::Persistent v8::Persistent&T&::New(v8::Handle)& [M:\Tiry\GitHub\nodist\bin\node_modules\pomelo\node_modules\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 devotre projet. Pour corriger ce problème, vérifiez que les valeurs des propriétés $(OutDir), $(TargetName) et $(TargetExt) correspondent à la valeur spécifiéedans %(Link.OutputFile). [M:\Tiry\GitHub\nodist\bin\node_modules\pomelo\node_modules\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 ...
安装的过程中报错
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
windows 环境
win7环境component在public/js/lib/build下生成的build.js有乱码怎么办?
@ 默认打开 utf8 ...
C:\Users\翔\AppData\Roaming\npm\node_modules\pomelo\node_modulegram Files\nodejs\node_modules\npm\bin\node-gyp-bin\\..\..\node\bin\node-gyp.js& rebuildbuild/binding.sln(1): 解决方案文件 error MSB5014: 无法识别文件格只能读取版本 7.0 到 9.0 之间(包括这两个版本)的解决方案文件。
这个是啥情况啊, 我win8 X64
toobusy.cc..\toobusy.cc(1): fatal error C1083: 无法打开包括文件:“v8.h”: No such file ordirectory [C:\Users\bai\AppData\Roaming\npm\node_modules\pomelo\node_modules\toobusy\build\toobusy.vcxproj]gyp ERR! build errorgyp ERR! stack Error: msbuild failed with exit code: 1gyp 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.7600gyp ERR! command &node& &C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js& &rebuild&gyp ERR! cwd C:\Users\bai\AppData\Roaming\npm\node_modules\pomelo\node_modules\toobusygyp ERR! node -v v0.8.23gyp ERR! node-gyp -v v0.9.5gyp ERR! not oknpm ERR! error rolling back Error: ENOTEMPTY, rmdir &C:\Users\bai\AppData\Roaming\npm\node_modules\pomelo\node_modules\pomelo-loader\test&npm ERR! error rolling back
{ [Error: ENOTEMPTY, rmdir &C:\Users\bai\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!
install: node-gyp rebuildnpm ERR! cmd &/c& &node-gyp rebuild& failed with 1npm ERR!npm ERR! Failed at the
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 rebuildnpm ERR! You can get their info via:npm ERR!
npm owner ls toobusynpm ERR! There is likely additional logging output above.
npm ERR! System Windows_NT 6.1.7600npm ERR! command &C:\\Program Files\\nodejs\\\\node.exe& &C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js& &install& &-g& &pomelo&npm ERR! cwd C:\Program Files\Microsoft Visual Studio 10.0\VCnpm ERR! node -v v0.8.23npm ERR! npm -v 1.2.18npm ERR! code ELIFECYCLEnpm ERR! Error: ENOENT, lstat &C:\Users\bai\AppData\Roaming\npm\node_modules\pomelo\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!
&;npm ERR! or email it to:npm ERR!
npm ERR! System Windows_NT 6.1.7600npm ERR! command &C:\\Program Files\\nodejs\\\\node.exe& &C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js& &install& &-g& &pomelo&npm ERR! cwd C:\Program Files\Microsoft Visual Studio 10.0\VCnpm ERR! node -v v0.8.23npm ERR! npm -v 1.2.18npm 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_modules\zeparser\benchmark.htmlnpm 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-obfuscator\node_modules\zeparser\benchmark.htmlnpm ERR! fstream_type Filenpm ERR! fstream_class FileWriternpm ERR! code ENOENTnpm ERR! errno 34npm ERR! fstream_stack C:\Program Files\nodejs\node_modules\npm\node_modules\fstream\lib\writer.js:284:26npm ERR! fstream_stack Object.oncomplete (fs.js:297:15)
bufferutil.ccnpm http 304 ..\src\bufferutil.cc(7): fatal error C1083: 无法打开包括文件:“v8.h”: No such file or directory [C:\Users\bai\AppData\Roaming\npm\node_modules\pomelo\node_modules\ws\build\bufferutil.vcxproj]npm http GET npm http 304
validation.cc..\src\validation.cc(7): fatal error C1083: 无法打开包括文件:“v8.h”: No such file or directory [C:\Users\bai\AppData\Roaming\npm\node_modules\pomelo\node_modules\ws\build\validation.vcxproj]我的环境
这是个什么情况?node:8.22npm:1.2.14python:2.7vc++:vs2010这个谁能告诉我?
求告诉这是怎么回事啊
windows上报错,无法安装,各种换node版本,无效
可以正常安装了
按照本文提到的方法操作,无法启动game-server,web-server已经能成功启动了
C:\Users\miaodadao\Desktop\pomelo_demo\game-server&pomelo start[ 16:44:34.158] [INFO] pomelo - [C:\Users\miaodadao\Desktop\pomelo_demo\game-server\node_modules\pomelo\lib\application.js] application inited: &master-server-1&
Error: %1 is not a valid Win32 application.
C:\Users\miaodadao\Desktop\pomelo_demo\game-server\node_modules\pomelo\node_modules\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\node_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)
在IE浏览器下,总是报pomelo为空或不是对象,请问下这是什么原因。在chrome下就不会有
如此,太多的问题纠结在安装和初次运行上。呃~~ 貌似有点影响评估者的信心。
@ 在windows下面,本来就不是推荐的
@ 要么最好别支持,要么就好好支持。
@ pomelo 好好用,就别用windows啊,装个虚拟机有那么困难吗
@ 宣传的时候说跨平台,支持windows,现在又说windows不推荐,到底是如何!
@ windows 是支持的啊,只是比linux装起来麻烦点
能跑起来的。 我都跑起来了 和nodejs版本也有关系 换一个 重启一下就好了
C:\Users\Administrator\.node-gyp\0.8.21\deps\v8\include\v8.h(183): warning C4506: 内联函数“v8::Persistent&T& v8::Persistent&T&::New(v8::Handle&T&)”没有定义 [C:\Users\Administrator\AppData\Roaming\npm\node_modules\pomelo\node_modules\ws\build\bufferutil.vcxproj]
T=v8::Object
正在创建库 C:\Users\Administrator\AppData\Roaming\npm\node_modules\pomelo\node_
modules\pomelo-admin\node_modules\ndump\build\Release\ndump.lib 和对象 C:\Users\
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\node_
modules\ws\build\Release\bufferutil.lib 和对象 C:\Users\Administrator\AppData\Ro
aming\npm\node_modules\pomelo\node_modules\ws\build\Release\bufferutil.exp
正在生成代码
已完成代码的生成&
install C:\Users\Administrator\AppData\Roaming\npm\node_modules\pomelo\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\pomelo-admin\node_modules\mongodb\node_modules\bson&node &C:\Program Files (x86)\nodejs\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.ccC:\Users\Administrator\.node-gyp\0.8.21\deps\v8\include\v8.h(183): warning C450npm
kerberos.cc
bson.cc6: 内联函数“v8::Persistent&T& v8::Persistent&T&::New(v8::Handle&T&)”没有定义 [C:\Users\
worker.ccAdministrator\AppData\Roaming\npm\node_modules\pomelo\node_modules\ws\build\val
security_credentials.ccidation.vcxproj]
security_buffer.cc C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\xlocale(323): warning C4530: 使用了 C++ 异常处理程序,但未启用展开语义。请指定 /EHsc [C:\Users\Administrator\AppData\Roaming\npm\node_modules\pomelo\node_modules\pomelo-admin\node_modules\mongodb\node_modules\bson\build\bson.vcxproj]
T=v8::ObjectC:\Users\Administrator\.node-gyp\0.8.21\deps\v8\include\v8.h(178): warning C450C:\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-adminAdministrator\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
T=v8::Object
T=v8::Object
security_buffer_descriptor.ccC:\Users\Administrator\.node-gyp\0.8.21\deps\v8\include\v8.h(183): warning C450C:\Users\Administrator\.node-gyp\0.8.21\deps\v8\include\v8.h(183): warning C4506: 内联函数“v8::Persistent&T& v8::Persistent&T&::New(v8::Handle&T&)”没有定义 [C:\Users\Administrator\AppData\Roaming\npm\node_modules\pomelo\node_modules\pomelo-admin6: 内联函数“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
T=v8::Object
T=v8::FunctionTemplate
]C:\Users\Administrator\.node-gyp\0.8.21\deps\v8\include\v8.h(183): warning C450http6: 内联函数“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]
T=v8::FunctionTemplate
security_context.ccnpm http 304
win7下安装 出现类似提示。我是3.5升级到最新版,出现这样的提示。之前的旧版本是可以用的。vs2010重新安装过,问题依旧。
正在生成代码
已完成代码的生成
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.nodeC:\Users\Administrator\AppData\Roaming\npm\pomelo -& C:\Users\Administrator\AppData\Roaming\npm\node_modules\pomelo\bin\pomelo C:\Users\Administrator\AppData\Roaming\npm\node_modules\pomelo├── ├── ├── ├── ├── ├── ├── ├── ├── ├──
(, , )├──
(, , )├──
(, , , )├──
(, , , socket.i)└──
(, , pomelo-schedu, , , )
最后出现的是这些。但是pomelo不可用
我安装的时候出现了gyp ERR! stack Error: spawn ENOENT
错误 重新设置了python的环境变量就好了
今天在新电脑上,win7 64bit, vs2012 x64, python2.7.3 x64环境下,前面都顺利.到最后一步出错,bin\component.bat 返回:error: missing component.json
这个文件哪里去找?
@ 在 web-server 目录下面
求哪位老大百忙之中抽出1天时间,做一个windows环境 和
linux 环境下 的傻瓜安装包,其实只需要一个压缩包+批处理 命令 就搞定了。
作为新人本想学习下先进的技术,却不成想到折腾了3天还是没装上。。。
面对这么多人提了这么多问题,解答问题花的时间都不知道可以做多少个框架了。。。。
什么玩意哦,我的win32,win64,os x下都装不了,而且错误都不一样,
装其他的包都没问题,就这个这么折腾,哎~能兼容一点吗
报什么错误
@ 太多了,不想弄了
@ 建议还是在linux系统中安装,比较省事。
@ 在os x下面是在运行node-gyp 的时候说没有权限,我这个时候sudo node-gyp ...又说找不到命令
@ 重新安装一下npm install node-gyp -g
什么情况?win7 ; node: v0.10.24; python2.7.6 ;vc 2010 express
你这个问题有解决么?
一样的问题,求解
解决这个问题么?
@ 同样的问题。
问题解决了吗?求告知, @
求助,npm install -g component的时候报错
有MAC 版的么= =。。
&h3&崩溃的很啊,各种报错,ububtu下无压力安装,无压力启动,无压力跑起&/h3&win下各种死,唉!...
请问你用ubuntu哪个版本?
win7 64bit +最新node版本+vs2013 安装不上啊 求解
求助,npm install -g component的时候报错
sh-3.2# npm install -g npm WARN git config --get remote.origin.url returned wrong result (git:///ariya/esprima.git) 要不就是老是没反应 我的环境是mac系统 game-server 能够启动
尝试一下cnpm
存在多个vs版本的话,可能需要执行如下命令来保证 nodejs 跟编译器的关联性 npm config set msvs_version 2012 --global 管理员看看是不是加上
当了回小白鼠,什么都安装后,提示版本不对,node不支持最新,但是好多项目工程的模块都需要最新版才支持呀!!!!请问pomelo什么时候支持最新版本的node呀?
@ 是node对windows支持的有问题,不要用蛋疼的windows就支持的
真的很想吐槽一下,win上都是各种问题,对于新手进来一开始就被泄气了... 能不能不要被搭建环境挡在了门外,要弄就弄的好一点嘛
我写的正确文章
请看我写的正确配置文章
我安装成功。下面我的配置Python 2.7.11 x64Node.js 0.10.44 x64pomelo 1.2.2 x64
开始我也卡在npm install -g,Node.4.4报了一大堆错误。按照楼主说明重新安装了Node,换在0.10.x,报了一大堆警告! 查了其它资源,说要将旧版本Node切底卸载。我删除了以下内容1. C:\user\xxxx\.node-gyp2. 对应注册表3. 安装路径目录4. C:\Users\xxx\AppData\Roaming\npm-cache5. C:\Users\xxx\AppData\Roaming\npm
win8 python2.7
node.js 5.8
我安装的是vs2013 vs2015都有,难道只能用vs2012吗??
小白求教,&node -vv5.10.1&npm -v3.8.3
&pomelo -V2.0.0
&python --versionPython 2.7.9 这是版本信息
, 安装的是VS 2015 win8 系统&npm install -g pomelo 后 (没出现什么错误)&pomelo -V2.0.0
==========问题分割线=============我在CMD 里面输入 &pomelo -h 后 出现是以下的 提示
Usage: pomelo [options] [command]
init [path]
create a new applicatio
-h, --help
output usage information
-V, --version
output the version number
没有了 就这点,似乎只有提供init 命令 ,start什么的都没有然后我就在创建了个 helloworld 项目 遇到要启动game server 就懵逼了 输入命令 pomelo starrt
给的提示是Illegal command format. Use pomelo --help to get more info.这是什么问题啊? 急死人了
$ git clone
$ cd pomelo
$ npm install -g
问题跟你一样。用这种方法在安装成功了。
欢迎入坑我用的是ubuntu解决了(一下基于ub平台,理论上win也一样)貌似pomelo2.0的启动机制变动在源代码中执行node app.js,会提示安装《zookeeper》安装后,启动,还是没啥反应。。。注意,有个start.sh文件(不知道win下面是啥)结论很简单,启动的时候,需要逐个配置,如:node app.js host:xxx.xxx port:1234 serverType=chat id=chat-server-1多个就采用脚本(PS之前的版本,直接用node app.js会调用config/servers.js自动完成,新版本,需要自己编写启动脚本,可以说是更灵活了吧)
@ 怎么配置哇 你这个我看不懂, 给出WIN下的解决方案可以不?跪谢了
@ 没在window下装过,要装vs太麻烦了,我知道的主要是2.0需要转个zookeeper参考下这个帖子}

我要回帖

更多关于 nodejs 跨平台 的文章

更多推荐

版权声明:文章内容来源于网络,版权归原作者所有,如有侵权请点击这里与我们联系,我们将及时删除。

点击添加站长微信