When --module_repository is set to url that includes basic auth info like below...
puppet module install will fail with following error:
Error: userinfo not supported. [RFC3986]
Error: Try 'puppet help module install' for usage
I've submitted following pull request for the fix: