NetEase / pomelo

A fast,scalable,distributed game server framework for Node.js.
http://pomelo.netease.com
MIT License
11.86k stars 2.9k forks source link

2.2.6执行报错,pomelo格式不对 #1145

Open sss316 opened 5 years ago

sss316 commented 5 years ago

先cd /root/node-v6.11.3-linux-x64/lib/node_modules/pomelo/bin

2.2.5格式是: file ./pomelo ./pomelo: Pascal source, ASCII text

2.2.6格式是: file ./pomelo ./pomelo: a /usr/bin/env node\015 script, ASCII text executable, with CRLF line terminators 我执行新的,报错 No such file or directory

新版本为啥要改文件格式呢

shudingbo commented 5 years ago

直接通过npm源,别用阿里源。阿里源有时有这个问题

sss316 commented 5 years ago

我的是直接npm安装的

sss316 commented 5 years ago

服务器也是腾讯的服务器,centos 最新版64位

shudingbo commented 5 years ago

Nall你可以用sex-pomelo试一试。 https://github.com/sex-pomelo/sex-pomelo

sss316 commented 5 years ago

node版本更新到8.11.2就好,已解决!

chenmo20074639 commented 5 years ago

请问如果node更新到10.15.0,你们有没有遇到pomelo stop 报错?

lolieatapple commented 1 year ago

这个问题需要把pomelo文件格式改成LF。默认是CRLF只支持Windows。