Issue
I'm trying to install socket.io
on my machine, but I keep encountering errors when I run npm install socket.io
as directed on their website. I'm not sure if I have version incompatibilities for npm or node.js or if I'm simply missing something obvious. As far as I can tell, I have the most recent stable version of both of them.
When I run the install command, the console outputs 40+ errors, and at the end I am given the line npm not ok
. Any ideas as to what is going wrong?
Solution
What is the error?
Are you installing npm
using code from git
? I can only guess that you are not using a stable code, because the master branch from git is often unstable.
If that is the case, what you can do is to get the latest code from the git repository and install it again.
$ cd npm
$ git pull
$ make install
Hope it will solved your problem.
Answered By - kelvinfix Answer Checked By - Willingham (WPSolving Volunteer)