figured out that I can pass a 'prefix' to npm.load so that it installs and uninstalls at that place.