3 ms·
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://np
by majke 15y ago
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-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