GodziLaravel's avatar

Soketi : Error: This version of uWS.js supports only Node.js 14, 16 and 18

Hello ,

I replaced laravel-websockets by soketi and it seems working well with node 18.

when I switch to node 20 I got this error message :

 soketi start --config  soketi.json   
                                                                                                     T
/usr/local/lib/node_modules/@soketi/soketi/node_modules/uWebSockets.js/uws.js:22
                throw new Error('This version of uWS.js supports only Node.js 14, 16 and 18 on (glibc) Linux, macOS and Windows, on Tier 1 platforms (https://github.com/nodejs/node/blob/master/BUILDING.md#platform-list).\n\n' + e.toString());
                ^

Error: This version of uWS.js supports only Node.js 14, 16 and 18 on (glibc) Linux, macOS and Windows, on Tier 1 platforms (https://github.com/nodejs/node/blob/master/BUILDING.md#platform-list).

Error: Cannot find module './uws_linux_x64_115.node'
Require stack:
- /usr/local/lib/node_modules/@soketi/soketi/node_modules/uWebSockets.js/uws.js
- /usr/local/lib/node_modules/@soketi/soketi/dist/server.js
- /usr/local/lib/node_modules/@soketi/soketi/dist/index.js
- /usr/local/lib/node_modules/@soketi/soketi/dist/cli/cli.js
- /usr/local/lib/node_modules/@soketi/soketi/dist/cli/index.js
- /usr/local/lib/node_modules/@soketi/soketi/bin/server.js
    at /usr/local/lib/node_modules/@soketi/soketi/node_modules/uWebSockets.js/uws.js:22:9
    at Object.<anonymous> (/usr/local/lib/node_modules/@soketi/soketi/node_modules/uWebSockets.js/uws.js:24:3)
    at Module._compile (node:internal/modules/cjs/loader:1358:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1416:10)
    at Module.load (node:internal/modules/cjs/loader:1208:32)
    at Module._load (node:internal/modules/cjs/loader:1024:12)
    at Module.require (node:internal/modules/cjs/loader:1233:19)
    at require (node:internal/modules/helpers:179:18)
    at Object.<anonymous> (/usr/local/lib/node_modules/@soketi/soketi/dist/server.js:18:13)
    at Module._compile (node:internal/modules/cjs/loader:1358:14)

Node.js v20.16.0

Here some additional data :

 npm list uws
serv@ /data/www/********.com
└── [email protected]

$ node -v                                                                                                                                                                               
v20.16.0

```

Thanks
0 likes
1 reply
jlrdw's avatar

The error message pretty much explains what's going on, from just reading over it.

Please or to participate in this conversation.