Several of my node programs are exiting with a failure status and no output. E.g.:
$ npmunbox --help # Error - no output
$ grover --version # Error - no output
Even though my nodejs seems to be working fine:
$ nodejs --version
v0.10.32
I'm running Ubuntu 14.04.
The problem was that I had a package called "node - Amateur Packet Radio Node program (transitional package)" (note: this is NOT nodejs) installed:
This binary is at
/usr/bin/node, but somenodejsprograms expect to find the binary fornodejshere.The trick is to uninstall the
nodepackage, and then re-installnodejs:Now the
/usr/bin/nodebinary should be linked tonodejs(in a somewhat roundabout way):And your nodejs programs should now work correctly: