Closed LoryColo closed 3 years ago
Try deleting /node_modules/ and doing npm install? looks like the sqlite module is crashing. If not, you can always just remove the module.
Have you tried running sudo apt-get update && sudo apt-get install libnode-dev
? It looks like you're missing a library that SQLite expects.
Have you tried running
sudo apt-get update && sudo apt-get install libnode-dev
? It looks like you're missing a library that SQLite expects.
I ran that command and it is now spitting out this error, seems to be better than before tough
malloc(): invalid size (unsorted)
CRASH: Error [ERR_IPC_DISCONNECTED]: IPC channel is already disconnected
at new NodeError (node:internal/errors:278:15)
at ChildProcess.target.disconnect (node:internal/child_process:872:26)
at QueryProcessWrapper.destroy (/home/pi/pokemon-showdown/.lib-dist/process-manager.js:178:16)
at QueryProcessWrapper.release (/home/pi/pokemon-showdown/.lib-dist/process-manager.js:164:9)
at QueryProcessManager.releaseCrashed (/home/pi/pokemon-showdown/.lib-dist/process-manager.js:421:16)
at ChildProcess.<anonymous> (/home/pi/pokemon-showdown/.lib-dist/process-manager.js:468:48)
at ChildProcess.emit (node:events:376:20)
at ChildProcess.EventEmitter.emit (node:domain:470:12)
at finish (node:internal/child_process:902:14)
at processTicksAndRejections (node:internal/process/task_queues:75:11)
Try deleting /node_modules/ and doing npm install? looks like the sqlite module is crashing. If not, you can always just remove the module.
I tried deleting that folder but now npm install results in bash: /usr/bin/node: No such file or directory
, i think it might be linked to the fact that i ran sudo apt-get update && sudo apt-get install libnode-dev
as someone was suggesting
EDIT: i reinstalled node and npm and was able to run npm install after removing the directory, fingers crossed
Was able to get it up and running, ty everyone for the help
I tried installing this on my raspberry pi B to try and run a simple server and do some tests on it, i was able to clone the repository and i installed node 15, i did ./build and everything was fine. When i try to run the server with ./pokemon-showdown start [--skip-build] [PORT] it starts but i instantly get this error Any idea what could be causing this?