I installed node js and npm via apt-get install and all of the dependencies, then I installed browserify
npm install browserify -g
it goes
Run apt-get install nodejs-legacy.
apt-get install nodejs-legacy
Certain linux distributions have changed node.js binary name making it uncompatible with a lot of node.js packages. Package nodejs-legacy provides a symlink to resolve this.
nodejs-legacy