我配置好了config.js
1.改好后是这个文件需要重命名吗?例如config.json 或者是 config.ex.json 请您提供下正确命名
2.是不是只要下载NODE Windows二进制文件(. exe) 就可以了 不需要下载别的软件辅助的
3.我运行node index 命令的时候出现以下提示
[co de]> node index
SyntaxError: Unexpected identifier
at Object.exports.createScript (vm.js:44:10)
at REPLServer.defaultEval (repl.js:117:23)
at bound (domain.js:254:14)
at REPLServer.runBound [as eval] (domain.js:267:12)
at REPLServer.<anonymous> (repl.js:279:12)
at REPLServer.emit (events.js:107:17)
at REPLServer.Interface._onLine (readline.js:214:10)
at REPLServer.Interface._line (readline.js:553:8)
at REPLServer.Interface._ttyWrite (readline.js:830:14)
at ReadStream.onkeypress (readline.js:109:10)
> node index
SyntaxError: Unexpected identifier
at Object.exports.createScript (vm.js:44:10)
at REPLServer.defaultEval (repl.js:117:23)
at bound (domain.js:254:14)
at REPLServer.runBound [as eval] (domain.js:267:12)
at REPLServer.<anonymous> (repl.js:279:12)
at REPLServer.emit (events.js:107:17)
at REPLServer.Interface._onLine (readline.js:214:10)
at REPLServer.Interface._line (readline.js:553:8)
at REPLServer.Interface._ttyWrite (readline.js:830:14)
at ReadStream.onkeypress (readline.js:109:10)
>[/code]
4.这个是我的配置脚本config.js
- {
- "port": [
- 8888
- ],
- "host": "0.0.0.0",
- "default": "localhost",
- "ipLimit": {
- "default": 0,
- "127.0.0.1": 0
- },
- "ban": {"ip": []},
- "detective": false,
- "servers": {
- "8888": {
- "host": "localhost",
- "port": 25565,
- "handlePing": {
- "version": "1.7.2",
- "maxPlayers": 200,
- "description": "minecraft-proxy",
- "favicon": "path/to/file.png"
- }
- },
- "8888": {
- "host": "localhost",
- "port": 25565
- }
- }
- }
复制代码