3 ms·
To install socket.io you need only execute `npm install socket.io` This installs socket.io from the npm registry (there is no need to download/extract the zip)
by pyrotechnick 15y ago
To install socket.io you need only execute `npm install socket.io`
This installs socket.io from the npm registry (there is no need to download/extract the zip).
- latch 15y ago-g if you want to make it globally accessible.
- majke 15y agoYeah, but there is not much value in installing socket.io globally, as you can't require() it. It makes sense only for executables like coffee-script http://npmjs.org/doc/faq.html#I-installed-something-globally-but-I-can-t-require-it http://npmjs.org/doc/faq.html#I-installed-something-globally...
- ecto 15y agoYou can definitely require() modules after installing them globally. https://github.com/joyent/node/blob/master/lib/module.js https://github.com/joyent/node/blob/master/lib/module.js