It puts tool executables installed via "sudo npm install -g" into /usr/bin/* , as symlinks into /usr/lib/node_modules. It would be neat if these were cleaned up as well by your wonderful script.