install codebox non-globally to fix some node-gyp problems

I had various issues with node-gyp such as permissions errors and a chdir problem. These changes fix that.