Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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).



-g if you want to make it globally accessible.


Yeah, 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...


You can definitely require() modules after installing them globally.

https://github.com/joyent/node/blob/master/lib/module.js




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: