I folks.
I've tried installing node.js and socket.io as I want to see if they will
provide a solution to a problem I have.
However, the first problem I've got is that it won't run. Below are the yum
installs that I've tried. They look a bit iratic as I did them while trying
things, and reading a number of web pages. Between them they must have
installed over 200 rpms.
The result is that when I try testing the install using
git://github.com/learnboost/socket.io
I get the error shown below. This seems to be a known problem on Fedora, and
is designed to work this way. The solution is supposed to be found at
https://npmjs.org/doc/faq.html#I-installed-something-globally-but-I-can-t...
but all I get is HTTP error 404. Can anyone please tell me what I need to do
[gary@gary chat]$ node .
module.js:340
throw err;
^
Error: Cannot find module 'engine.io'
at Function.Module._resolveFilename (module.js:338:15)
at Function.Module._load (module.js:280:25)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at Object.<anonymous> (/home/gary/socket.io-node/lib/index.js:8:14)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:364:17)
[gary@gary chat]$ ll
total 16
-rw-rw-r-- 1 gary gary 1934 Mar 2 14:18 index.js
-rw-rw-r-- 1 gary gary 249 Mar 2 14:18 package.json
drwxrwxr-x 2 gary gary 4096 Mar 2 14:18 public
-rw-rw-r-- 1 gary gary 497 Mar 2 14:18 README.md
[gary@gary chat]$
yum install nodejs nodejs-ws
yum install nodejs-express.noarch nodejs-express-session.noarch \
nodejs-ansi-regex.noarch
yum install nodejs-errorhandler.noarch nodejs-errs.noarch \
nodejs-module-not-found-error.noarch
yum install nodejs-express.noarch -- said there's nothing to do
yum install npm
yum install 'npm(express)' -- said there's nothing to do
--
Gary Stainburn
Group I.T. Manager
Ringways Garages
http://www.ringways.co.uk