I get an error when I try to start a project created using the node.js template project. I installed socket.io using NPM with this command:
npm install socket.io
The error I am getting is:
node.js:189 throw e; // process.nextTick error, or 'error' event on first tick ^ Error: Cannot find module 'Socket.io-node' at Function._resolveFilename (module.js:317:11) at Function._load (module.js:262:25) at require (module.js:346:19) at Object.<anonymous> (/Users/mairead.buchan/Documents/WORK/auto-aggro/server.js:6:12) at Module._compile (module.js:406:26) at Object..js (module.js:445:10) at Module.load (module.js:334:31) at Function._load (module.js:293:12) at Array.<anonymous> (module.js:458:10) at EventEmitter._tickCallback (node.js:181:26)
My question is: do I have some kind of incorrect combination of node / socket.io versions? (I know socket.io just rose to 0.7).
FYI Yesterday I did a compilation from the source for node (using 5.0) and installed everything else today using NPM, so everything should be running in the latest version
Is node.js template deprecated with changes to socket.io project?
or is there another way to specifically install socket.io-node that I cannot find. All answers seem to point to just installing socket.io.
I would like to consult. thank you all thank you
source share