Node.js app error when loading Socket.Io
See original GitHub issueI 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:
- Created 7 years ago
- Comments:16 (3 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
For future readers: please see the documentation here.
thanks @darrachequesne it really helpful 🙏