Adds automatic npm registry toggling.