question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot use 'uws', because it's been abandoned

See original GitHub issue
  • report a bug
  • request a feature

Current behaviour

For Nodejs 8.x and 9.x (with uws = 8.x) works properly.

For Nodejs 10.x + uws (>= 8.x <= 9.x): it throws an error saying “Error: Compilation of µWebSockets has failed and there is no pre-compiled binary available for your system. Please install a supported C++11 compiler and reinstall the module ‘uws’”.

For Nodejs 10.x + uws (>=10.x):cannot find module ‘uws’.

Steps to reproduce (if the current behaviour is a bug)

Just assign ‘uws’ to wsEngine, each time I’ll remove all the imports by directly removing node_modules and install them by running npm i. Then my uws is installed in the mode of dev-dependencies.

Expected behaviour

Works properly like Node 8 or 9.

Setup

  • OS: Windows 8.1 (SP1), Linux (x64
  • browser: N/A
  • socket.io version: 2.0.4

Other Info

I found uws is deprecated now, so in the main page of Socket.IO SHOULD’T SUPPORT THAT any more (See https://socket.io/docs/server-api/ part). And maybe there’s something code to be changed with, or change to a new lib something like uws.

See the DUPLICATED uws: https://www.npmjs.com/package/uws, the version is changing TOO RAPIDLY, not so stable.

Maybe the logic as well as socketio should be modified? (See codes at: https://github.com/socketio/engine.io/blob/6a16ea119280a02029618544d44eb515f7f2d076/lib/server.js#L107).

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:7
  • Comments:21 (3 by maintainers)

github_iconTop GitHub Comments

6reactions
shirtletoncommented, Mar 21, 2019

uWS has not been abandoned. The maintainer created a new repo. https://github.com/uNetworking/uWebSockets.js

4reactions
mmdevriescommented, Aug 26, 2019

@stefanovualto I’m not sure if this solves your issue but we have created a new package based on the original uws merged with some fixes from cws. The new package should be compatible with node 10 and 12. https://github.com/mmdevries/uws

Read more comments on GitHub >

github_iconTop Results From Across the Web

Almost half of UWS tower would have to be removed under ...
Manhattan Supreme Court Judge W. Franc Perry issued the shocking decision that the city must revoke the building permit for the site and...
Read more >
Inside An Abandoned New York City Mansion | Hidden Gems
Your browser can't play this video. ... Manhattan real estate being what it is, even with the property needing drastic interior renovations ...
Read more >
Review article Interventions to improve outcomes in children ...
... have also been abandoned due to their misleading nature, as these terms suggest that individuals cannot recover from UWS and that it...
Read more >
Squatters Rights in New York: A Guide for 2022 | PropertyClub
A squatter can fail to move out of an apartment when their lease expires and refuse to pay rent moving forward. This type...
Read more >
How a Lone Tenant Is Holding Up a $70 Million Condo Deal
In most cases, a tenant cannot be evicted while their application is open. ... The one near Mr. Ozsu's apartment was installed because...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found