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.

Node.js app error when loading Socket.Io

See original GitHub issue

I am running Node.js (Centos 7) and I just started to implement Socket.io.

The only line of code I have regarding Socket.io is in my /bin/www file

var io = require('socket.io')(server);

The app blows up with an error:

error Cannot find module ‘bufferutil’

I have done

npm install bufferutil --save

but does not fix the issue.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:16 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
darrachequesnecommented, Feb 18, 2021

For future readers: please see the documentation here.

1reaction
anztraxcommented, Apr 15, 2022

thanks @darrachequesne it really helpful 🙏

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshooting connection issues | Socket.IO
Common errors: the server might not be reachable. Please make sure the Socket.IO server is actually reachable at the given URL.
Read more >
what could be the error in socketio when using with express?
I have tried many methods to connect socket-io client and server with express but its not working and now i do not know...
Read more >
Error node js socket io socket io js not found - Edureka
Getting the error: /socket.io/socket.io.js 404 (Not Found) Uncaught ReferenceError: io is not defined. My code is: var express ...
Read more >
Node.js Socket.io Error when trying to connect client to server
The easiest solution is to use CDN version (which many of your clients will already have in cache) and manually specify connection URL...
Read more >
Errors | Node.js v19.3.0 Documentation
For all EventEmitter objects, if an 'error' event handler is not provided, the error will be thrown, causing the Node.js process to report...
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