Allow view in global mode if pkg is specified

This allows `npm view <package> --global` while preventing `npm view . --global`