uNetworking / uWebSockets.js

μWebSockets for Node.js back-ends :metal:
Apache License 2.0
8.09k stars 578 forks source link

NODE_MODULE_VERSION 93 in:uNetworking/uWebSockets.js #1040

Closed axiome23 closed 6 months ago

axiome23 commented 7 months ago

looking for NODE_MODULE_VERSION 93 in:uNetworking/uWebSockets.js

NO WAY !

trying to make test work on my RPI4 ARM64 for UWS.js return is (base) axi@axi-desktop:~/MonProjetTruffle$ node testUWS.js /home/axi/MonProjetTruffle/uWebSockets.js/uws.js:11 throw new Error('This version of uWS.js supports only Node.js LTS versions 16, 18 and 20 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 LTS versions 16, 18 and 20 on (glibc) Linux, macOS and Windows, on Tier 1 platforms (https://github.com/nodejs/node/blob/master/BUILDING.md#platform-list).

Error: The module '/home/axi/MonProjetTruffle/uWebSockets.js/uws_linux_arm64_67.node' was compiled against a different Node.js version using NODE_MODULE_VERSION 67. This version of Node.js requires NODE_MODULE_VERSION 93. Please try re-compiling or re-installing the module (for instance, using npm rebuild or npm install). at /home/axi/MonProjetTruffle/uWebSockets.js/uws.js:11:9 at Object. (/home/axi/MonProjetTruffle/uWebSockets.js/uws.js:13:3) at Module._compile (node:internal/modules/cjs/loader:1198:14) at Object.Module._extensions..js (node:internal/modules/cjs/loader:1252:10) at Module.load (node:internal/modules/cjs/loader:1076:32) at Function.Module._load (node:internal/modules/cjs/loader:911:12) at Module.require (node:internal/modules/cjs/loader:1100:19) at require (node:internal/modules/cjs/helpers:119:18) at Object. (/home/axi/MonProjetTruffle/testUWS.js:2:13) at Module._compile (node:internal/modules/cjs/loader:1198:14) (base) axi@axi-desktop:~/MonProjetTruffle$ my test is // testUWS.js const uWS = require('./uws.js'); // Ajusté pour requérir uws.js directement puisqu'ils sont dans le même dossier

const port = 9001;

uWS.App().get('/', (res, req) => { res.end('Hello World!'); }).listen(port, (token) => { if (token) { console.log(Serveur démarré et écoute sur le port ${port}); } else { console.log('Échec du démarrage du serveur'); } }); HELP !!!! thanks for your answer

axiome23 commented 7 months ago

qui peut me donner des informations sur la disponibilité des binaires compatibles avec NODE_MODULE_VERSION 93 ou comment trouver des binaires pour arm64 sur node 16 , 18 , 20 , 21 LTS serait le mieux cets pour un projet sous solidity et DAPP testing

uNetworkingAB commented 7 months ago

Looks like you need to update uWS.js by a lot. I know npm install is incredibly unreliable and buggy but try remove and re-add latest.

uws_linux_arm64_93.node is definitely part of latest release

axiome23 commented 7 months ago

Ohh many thks for your fast answer im struggling on.. i am on a truffle project , all my contracts compiled and i have this problem for testing im beginner and working alone im in the medical cannabis industry since 40 y and this projet is about an hybride project with NFT and a token about adn certification and copyright of strains

How can i build ateam for that assuming we are in contact with the biggest actors of the industry but privacy with thisproject oblige to look for people away of the industry ... i have deployed on gierli yet thanks for your answer

Le dim. 24 mars 2024, 16:33, uNetworkingAB @.***> a écrit :

Looks like you need to update uWS.js by a lot. I know npm install is incredibly unreliable and buggy but try remove and re-add latest.

uws_linux_arm64_93.node is definitely part of latest release

— Reply to this email directly, view it on GitHub https://github.com/uNetworking/uWebSockets.js/issues/1040#issuecomment-2016845961, or unsubscribe https://github.com/notifications/unsubscribe-auth/A4SQDUJW3HKZRHHPUIHXHTDYZ3W4VAVCNFSM6AAAAABFFY52VGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMJWHA2DKOJWGE . You are receiving this because you authored the thread.Message ID: @.***>

axiome23 commented 7 months ago

i will do npm uninstall uWebSockets.js npm cache clean --force npm install uWebSockets.js then npm root -g to verify my binairies the testing

Le dim. 24 mars 2024 à 16:41, ]< O ]]´´]/-\ ]<]`` @.***> a écrit :

Ohh many thks for your fast answer im struggling on.. i am on a truffle project , all my contracts compiled and i have this problem for testing im beginner and working alone im in the medical cannabis industry since 40 y and this projet is about an hybride project with NFT and a token about adn certification and copyright of strains

How can i build ateam for that assuming we are in contact with the biggest actors of the industry but privacy with thisproject oblige to look for people away of the industry ... i have deployed on gierli yet thanks for your answer

Le dim. 24 mars 2024, 16:33, uNetworkingAB @.***> a écrit :

Looks like you need to update uWS.js by a lot. I know npm install is incredibly unreliable and buggy but try remove and re-add latest.

uws_linux_arm64_93.node is definitely part of latest release

— Reply to this email directly, view it on GitHub https://github.com/uNetworking/uWebSockets.js/issues/1040#issuecomment-2016845961, or unsubscribe https://github.com/notifications/unsubscribe-auth/A4SQDUJW3HKZRHHPUIHXHTDYZ3W4VAVCNFSM6AAAAABFFY52VGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMJWHA2DKOJWGE . You are receiving this because you authored the thread.Message ID: @.***>

--

Pierre Etienne Jacob

axiome23 commented 7 months ago

can t find a WebSockets.js for ARM64 an dthe node suitable , not even prebuilt binairies to compile

gaisdav commented 4 months ago

Hi, guys, I have same problem when I am starting my server app in Docker. I am using yarn and hyper-express as a framework. can anyone help me? my Dockerfile:

#Build stage
FROM node:22-alpine

WORKDIR /app

COPY yarn.lock package.json ./

RUN corepack enable && yarn install

COPY . ./

CMD ["yarn", "run", "dev"]

error:


/app/.yarn/unplugged/uWebSockets.js-https-75116983e7/node_modules/uWebSockets.js/uws.js:24
})();
  ^
Error: This version of uWS.js supports only Node.js LTS versions 16, 18 and 20 on (glibc) Linux, macOS and Windows, on Tier 1 platforms (https://github.com/nodejs/node/blob/master/BUILDING.md#platform-list).

Error: Error loading shared library ld-linux-aarch64.so.1: No such file or directory (needed by /app/.yarn/unplugged/uWebSockets.js-https-75116983e7/node_modules/uWebSockets.js/uws_linux_arm64_127.node)
    at /app/.yarn/unplugged/uWebSockets.js-https-75116983e7/node_modules/uWebSocke
uNetworkingAB commented 4 months ago

Like already stated in this thread; you need to update uWS.js

gaisdav commented 4 months ago

There was the latest version of uWebSockets.js (20.44.0) What helped me was what I replaced FROM node:22-alpine to FROM cityofsurrey/node:22-debian. I still don't know what was the problem. And it seems that debian need more resources than alpine