JadlionHD / GrowServer

A Growtopia private server using NodeJS
MIT License
48 stars 28 forks source link

When I type "npm run dev" i get error #9

Closed nob345 closed 7 months ago

nob345 commented 7 months ago
> growserver@2.3.1 dev
> rimraf dist && rimraf assets/cache && biome lint ./src && swc ./src -d dist && node -r dotenv/config dist/src/app.js

The Biome CLI package doesn't ship with prebuilt binaries for your platform yet. You can still use the CLI by cloning the biome/tools repo from GitHub, and follow the instructions there to build the CLI for your platform.
JadlionHD commented 7 months ago

Hello! Can you tell more details about what OS & Arch did you use? it seems biomejs doesnt support it.

nob345 commented 7 months ago

aarch64-linux-android and I use Termux

JadlionHD commented 7 months ago

Yeah, biomejs not support android platform. i just updated the repo recently so try this instead

npm run dev:nolint
nob345 commented 7 months ago

I solved this error in Termux by installing Debian Linux, but now my device does not allow me to open localhost on port 80, and even though I change the port to 8080 in the Webserver.js file, the error is not fixed and even if I save it, the file returns to its previous state. I hope I explained my problem. Now I will throw the error code. Please help, it has always been my dream to open a private server.

node:events:497
      throw er; // Unhandled 'error' event
      ^

Error: listen EACCES: permission denied 0.0.0.0:80
    at Server.setupListenHandle [as _listen2] (node:net:1876:21)
    at listenInCluster (node:net:1941:12)
    at Server.listen (node:net:2029:7)
    at WebServer (/root/GrowServer/dist/src/structures/Webserver.js:67:20)
    at async /root/GrowServer/dist/src/structures/BaseServer.js:98:13
Emitted 'error' event on Server instance at:
    at emitErrorNT (node:net:1920:8)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
  code: 'EACCES',
  errno: -13,
  syscall: 'listen',
  address: '0.0.0.0',
  port: 80
}

Version: Node.js v21.6.1

JadlionHD commented 7 months ago

I havent try make a server on android before, but you can try this https://www.youtube.com/watch?v=GRho3wUTuKY forwarding port 8080 to 80

nob345 commented 7 months ago

Where is the port file

nob345 commented 7 months ago

I fixed the error! But now how do I connect to it from Android?

JadlionHD commented 7 months ago

try to connect? using like virtualhost, powertunnel, etc

nob345 commented 7 months ago

I can connecnt but store is not work