- This problem occurs when installing socket.io package for Node JS.
- Steps to reproduce :-
1. Install Socket.io.
2. Running Web Socket server produce this issue.
- Socket.io can be installed using Node Package Manager (NPM) using “npm -g istall socket.io” .
- Below screenshot shows the installation in windows.Remember to run as Administrator.
- Now if you will try to run a web socket server using ‘node filename.js‘ will result in the mentioned error.
- This issue is easy to solve by using following command “npm update“.