Difficulty with installing Dimensions proxy (Node.js)

says “Download the latest release and extract it to its own folder”
but i found no releases
so i cloned the repo:
git clone https://github.com/RenderBr/Dimensions.git
i installed nodejs, npm, typescript on my debian linux vps:

apt install nodejs
apt install npm
npm install --global typescript

and tried compiling or running it with:

npm run build
npm run start

but it gives many strange errors

1 Like

You are downloading from a REALLY old fork
Use this one instead GitHub - popstarfreas/Dimensions: The load-balancing and routing service for Terraria Servers

3 Likes
[root@vps_outside(2) ~/Dimensions/Dimensions]# npm install --omit=dev
npm WARN skipping integrity check for git dependency ssh://[email protected]/popstarfreas/rescript-core.git
npm WARN skipping integrity check for git dependency ssh://[email protected]/popstarfreas/rescript-nodejs.git
npm WARN skipping integrity check for git dependency ssh://[email protected]/popstarfreas/rescript-terrariapacket.git
npm ERR! git dep preparation failed
npm ERR! signal SIGKILL
npm ERR! command /usr/bin/node /usr/share/nodejs/npm/bin/npm-cli.js install --force --cache=/root/.npm --prefer-of=false --no-progress --no-save --no-audit --include=dev --include=peer --include=optional --no-package-lock-only -
npm ERR! npm WARN using --force Recommended protections disabled.

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2025-02-25T11_28_11_259Z-debug-0.log

[root@vps_outside(2) ~/Dimensions/Dimensions]# cat /root/.npm/_logs/2025-02-25T11_28_11_259Z-debug-0.log
cat: /root/.npm/_logs/2025-02-25T11_28_11_259Z-debug-0.log: No such file or directory

i don’t know what is wrong :thinking:

1 Like

If possible either file an issue here:
GitHub · Where software is built

or create a discussion:
popstarfreas/Dimensions · Discussions · GitHub

4 Likes

seems the older version/fork (GitHub - RenderBr/Dimensions: The load-balancing and routing service for Terraria Servers) was successfully build. indeed i had forgotten running the npm install… command first
but now i need a complete sample of config.js because i couldn’t find any sample files like config.js.quickstart or config.js.example in those repos even after build
i created a config.js file myself:

"use strict"
exports.ConfigSettings = {
    servers: [
        {
            listenPort: 7777,
            routingServers: [{
                name: "server1",
                serverIP: "127.0.0.1",
                serverPort: 6777,
                hidden: false,
            }]    
        },
        {
            listenPort: 7778,
            routingServers: [{
                name: "server2",
                serverIP: "127.0.0.1",
                serverPort: 6778,
                hidden: false,
            }]    
        },
    ],

but seems it is not enough:

[root@vps_outside(2) ~/Dimensions/Dimensions]# npm run start

> @popstarfreas/[email protected] start
> cd ./build && node ./index.js

/root/Dimensions/Dimensions/config.js:23



SyntaxError: Unexpected end of input
    at internalCompileFunction (node:internal/vm:73:18)
    at wrapSafe (node:internal/modules/cjs/loader:1274:20)
    at Module._compile (node:internal/modules/cjs/loader:1320:27)
    at Module._extensions..js (node:internal/modules/cjs/loader:1414:10)
    at Module.load (node:internal/modules/cjs/loader:1197:32)
    at Module._load (node:internal/modules/cjs/loader:1013:12)
    at Module.require (node:internal/modules/cjs/loader:1225:19)
    at require (node:internal/modules/helpers:177:18)
    at Object.<anonymous> (/root/Dimensions/Dimensions/build/node_modules/dimensions/configloader.js:4:26)
    at Module._compile (node:internal/modules/cjs/loader:1356:14)

Node.js v18.19.0
1 Like

finally successful
i used config.js.quickstart from popstarfreas’ repo for RenderBr’s fork that could be built on my vps

1 Like

ok at a proper occasion i will return to this insha Allah

1 Like
2 Likes