Node.js socket.io listen on same web port

Node.js code snippet to get socket.io (and socket.io client) listening on same web port as Express.js 3x. At time of writing (4 Dec 2013) Node.js socket.io version 1.0 has not yet been released. How to set it up To use with Socket.io version 0.9.16, express version 3.4.6 var io = require(’socket.io’)     , app …

101 Troubleshooting Yeoman Installs

So your trying to use Yeoman with Node.js and running into problems and errors? Maybe this post can help you. “Easy with the “sudo”; Yeoman is the master around here.” Ok so you’ve seen this error when trying to use Yeoman. “Easy with the “sudo”; Yeoman is the master around here.” Now what? “Since yo …

NodeJS Tips: .nodemonignore example & usage

Nodemon is a noce.js a grunt extension package which monitor for any changes in your node.js application and automatically restart the server – perfect for development. By default, if nodemon will only restart when a .js JavaScript file changes. In some cases you will want to ignore some specific files, directories or file patterns, to …

Find tjholowaychuk on the net

If you love Node then you probably have a man crush on TJ Holowaychuk. Here is a collection of internet links to what is the node.js phenomenon of tjholowaychuk. GitHub https://github.com/visionmedia https://github.com/visionmedia?tab=repositories Screencasts http://www.screenr.com/user/tjholowaychuk http://vimeo.com/user8021748 Live appearances http://campjs.com/#campjs-tj-holowaychuk Introductions “Im TJ Holowaychuk, I am 23 years old and I own Vision Media here in Victoria …

5 Node.js Chat App Demo Screenshots

A collection of a few Node.js Chat App Demo Screenshots and install commands. They use Node.js and socket.io to provide real time chat applications using JavaScript. Which ones are worth installing and having a look at? 1. Chat.io – NodeJS Chat App Demo A simple chat solution build on socket.io. View on GitHub View on …

warn – error raised: Error: listen EADDRINUSE

Seeing this error “warn – error raised: Error: listen EADDRINUSE”? Well let’s see how we can solve it. About the error This error is caused by the port number already being used by another process. So we need to find that process and kill it. The Best Solution linux find all active processes netstat -tulpn …

Node.js cannot find module x

Here is some diagnostic checks you can try if your using Node.js and it reports that it “cannot find module x”. These commands are obviously relative to what packages your using. Possible causes & solutions Not installing node packages globally, use the -g flag in the following command. npm install grunt -g NODE_PATH is not …