Handle npm change registry cmd.