uWebSockets.js icon indicating copy to clipboard operation
uWebSockets.js copied to clipboard

Support of Node 23.х (module version 131)

Open aleksraiden opened this issue 1 year ago • 1 comments

In a new version of NodeJS modules have a version 131 (see: https://github.com/nodejs/node/commit/17a17164d6) to adopt a new V8 version.

Please, add support of this platform

aleksraiden avatar Oct 17 '24 10:10 aleksraiden

Yes it will come soon

uNetworkingAB avatar Oct 17 '24 11:10 uNetworkingAB

I think that even 22 isn't supported currently:

Error: This version of uWS.js supports only Node.js versions 18, 20, 21 and 22 on (glibc) Linux, macOS and Windows, on Tier 1 platforms 
Error: Cannot find module './uws_win32_x64_127.node'
node -v
v22.11.0

Maclay74 avatar Nov 03 '24 12:11 Maclay74

You need to update uWS

uNetworkingAB avatar Nov 03 '24 14:11 uNetworkingAB

any updates?

maxpain avatar Nov 21 '24 22:11 maxpain

You can install latest nightly builds

npm install uNetworking/uWebSockets.js#binaries

uNetworkingAB avatar Nov 22 '24 00:11 uNetworkingAB

Aha

D:\a\uWebSockets.js\uWebSockets.js\uWebSockets.js\targets\node-v23.0.0\include\node\v8config.h(13): fatal error C1189: #error: "C++20 or later required."

uNetworkingAB avatar Nov 24 '24 16:11 uNetworkingAB

This thing is failing on Windows Node 23

// gcc 10 defines __cplusplus to "an unspecified value strictly larger than // 201703L" for its experimental -std=gnu++2a config. // TODO(leszeks): Change to __cplusplus <= 202002L once we only support // compilers with full C++20 support. #if __cplusplus <= 201703L #error "C++20 or later required." #endif

uNetworkingAB avatar Nov 24 '24 16:11 uNetworkingAB

https://learn.microsoft.com/en-us/cpp/build/reference/zc-cplusplus?view=msvc-170

uNetworkingAB avatar Nov 24 '24 16:11 uNetworkingAB

**the reason is the version of node is too high, you should downgrade the version to v20

brew install node@20

v22 is too higher

https://zoujiu.com.cn

https://nodejs.org/zh-cn/download/package-manager**

ZouJiu1 avatar Dec 17 '24 13:12 ZouJiu1