@V_Mohammed_Ibrahim You might find an interesting learning adventure to understand a bit more how to read these debug messages and then find a solution by your self.
For example you see in this message that something was not parsed rightfully in the node_modules folder.
The module is socket.io as you can see being the next subfolder.
The wrong parsing could be from the server code or from your installation.
Try out a small test project with socket.io and see if the error repeats.
If it does you have a broken installation.
If you google socket.io and raspberry PI then you might find some answers that could help you?
You can try to install socket.io globally:
npm install -g socket.io
If it does not, something in server.js is going wrong.
Maybe there is an issue with a version of socket.io?
It needs to be debugged. This is 90% of the work you need to do when you build something that was not there before. Start with small experiments first until you reached the point where you understand what is happening in the full picture. Try to break problems down in to their components until you have reached what is going wrong.
I want to encourage you to learn more on how to solve these error messages by your self.
You will learn a lot about how to debug node.js code.