开发者

Problem installing socket.io on Fedora Core

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 开发者_JAVA技巧I am given the line npm not ok. Any ideas as to what is going wrong?


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.


You need to provide an error log if you want anyone to try and troubleshoot your problem. It would also be helpful to know whether you installed Node and NPM from source or RPM. Furthermore, if you installed from source, did you do a standard install or did you make customisations?

If you are able to start from scratch, I suggest following the steps below and seeing how you go. Installing into your home directory won't require root and it makes it easier to clear everything out if you need to start again.

  1. Install the stable release of Node in your home directory (use ./configure --prefix=~/Node/)
  2. Set your path as appropriate (ie. PATH=/home/user/Node/bin:$PATH)
  3. Run the standard NPM installer (curl http://npmjs.org/install.sh | sh)
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜