Tell us what’s happening:
Describe your issue in detail here.
Everything is well coded but the passport.socketio has become headache I just can’t get where the problem could be, someone kindly guide where necessary
As said, you didn’t install the correct package. If you did you would have a passport.socketio folder inside the node_modules folder, which you do not.
Also, running npm install from the shell with that dependency (passport-socketio": "~3.7.0) in package.json should give you an error.
'passport-socketio@~3.7.0' is not in this registry.