uNetworking / uWebSockets.js

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

Node.js 16 #503

Closed ghost closed 3 years ago

ghost commented 3 years ago

Releases in 10 days which is a nice sync up with v19 release and from what I understand official Apple ARM support

ghost commented 3 years ago

At this point 10, 11, 13 binaries should be deleted as they are all deprecated - only 12, 14,15, 16 are currently maintained

Dmitry-N-Medvedev commented 3 years ago

Node.js v16.0.0 has just been released :) Waiting for the uWS to catch up :)

gjovanov commented 3 years ago

What about win port for node 16?

we are getting this:

Error: This version of µWS is not compatible with your Node.js build:
Error: Cannot find module './uws_win32_x64_93.node'
gjovanov commented 3 years ago

actually, ignore my last comment, after cleaning up node_modules and reinstalling, it works just fine.

ghost commented 3 years ago

Yep, you're hitting an NPM bug. Use Yarn instead, it does not suck asshole for breakfast.

gjovanov commented 3 years ago

actually we are using pnpm, which is much better than npm, but still somehow we have managed to have left-overs from old installations. Anyways, the important this it's that it's working nice.

Great stuff . Appreciate your effort put in uWebSockets and uWebSockets.js!

talentlessguy commented 3 years ago

same error

node 16.2 pnpm 6.2.5

happens with yarn 1.22.5 as well

reproduction code:

// index.mjs

import createServer from 'low-http-server'
import { App } from '@tinyhttp/app'

const server = createServer()

const app = new App()

app.get('/', (res) => {
  res.send('hello world')
})

server.on('request', app.attach)

server.listen(3000, () => console.log('Server listening on http://localhost:3000'))
ghost commented 3 years ago

Node.js 16 is definitely supported and has been since day 1, if that is what is being reported here.

talentlessguy commented 3 years ago

@alexhultman-2fa probably it's an installation issue then :thinking:

i tried pnpm, npm and yarn and this error occurs in all 3 package managers (a low-http-server project depends on uws git repo)

ghost commented 3 years ago

uWebSockets.js has definitely and absolutely supported Node.js 16 since day 1. I don't care what third party wrappers do and don't do.

talentlessguy commented 3 years ago

@alexhultman-2fa ok then, sorry for disturbing

i can't use the framework though cuz it doesn't install :thinking: (altho it works w/ direct git cloning)

ghost commented 3 years ago

It fails because you are installing an old version.

Stunext commented 3 years ago

I change the version in package.json and use "npm update" comand and it works. This can resolve "npm install" issues

ghost commented 3 years ago

That's always good to know but IMO it's still a bug in NPM when its behavior differs from old versions / docs.

Yarn doesn't have these blatant breakages and it's way faster so NPM is really irrelevant

dzcpy commented 2 years ago

What about node.js 17?

stkeers commented 7 months ago

mesmo erro

nó 16.2 pnpm 6.2.5

acontece com o fio 1.22.5 também

código de reprodução:

// index.mjs

import createServer from 'low-http-server'
import { App } from '@tinyhttp/app'

const server = createServer()

const app = new App()

app.get('/', (res) => {
  res.send('hello world')
})

server.on('request', app.attach)

server.listen(3000, () => console.log('Server listening on http://localhost:3000'))

Onde acho esse arquivo para editar? estou perdido, sou novo com soketi. Pode me ajudar?

uNetworkingAB commented 7 months ago

Please translate