If you see this in your stack trace while trying to start your node app..
TypeError: Cannot read property 'getsockname' of undefined
You might probably want to check if port/s your app is supposed to be using are being used by something else.
For example, your app uses port 80. You can check if that port is being used (via the terminal/command prompt):
sudo lsof -i:80
netstat -an | find ":80"
If nothing shows up when you do those commands, the ports are open.
If something shows up, then the port’s being used. You know what to do.
My previous post (Nyancat and The Matrix on your terminal) talks about how you can install Nyancat. Let’s use that as an example to package a .dsc file.
BTW, if you just want nyancat on Ubuntu without packaging anything, you can install it via this command: sudo apt-get install nyancat
Back at the Launchpad page for Nyancat, I went to the latest upload (1.2.2-1) and downloaded all three files into one directory. The tar.gz files are required to package the .dsc file.
Then I followed the steps on this linuxquestions.org thread about packaging and installing .dsc files on Linux. Read more
I came across some command line tricks on Twitter (https://twitter.com/climagic) one slow day. Here are two of the cool things I found (and got to try on my Ubuntu terminal). Read more