.npmrc file that puts global NPMs in a good place

and some other random bugfixes