-
Notifications
You must be signed in to change notification settings - Fork 2
Unable to register package source #11
Comments
Hey @Gregoorio, I'm not able to reproduce the issue you're seeing. What version of PowerShell are you using? |
I'm using the 5.1 powershell version. In version 1.0.4 Chocolatier I used the same version and registration of the repository via (register-packagesource) command it is works. |
Could you paste the entire terminal output, including the registration command, in this thread? |
Hi @ethanbergstrom, I've used command: And this is error: WARNING: MSG:UnableToDownload «https://go.microsoft.com/fwlink/?LinkID=627338&clcid=0x409» «»
I saw problem in the parameter 'name' but I don't know what is the matter "Cannot bind argument to parameter 'name' because it is an empty string." |
Could you confirm how you're installing the package provider? From the output, it looks like your machine isn't connected to the internet. Are you mirroring the package provider module to an internal NuGet repository? |
Yes, you are right. My machine has no internet. |
Hi ethanbergstrom, I copied the files from chocolatier provider 1.0.4 into the machine without the internet connection. There's one thing that has been bothering me, so I have deregistered my repository and copied the provider 1.2.0 files. Once again I have tried to register and the registered correctly. |
Great! Glad you were able to get it working. |
Hello @ethanbergstrom,
I saw that there was a new version 1.2.0 of Chocolatier. I don't know if anyone has tested adding their own repository via "register-packagesource" commands, but I get an error in the 'name' parameter (see below)
PS C:\Windows\system32> Register-PackageSource -name TEST -location https://myrepo/nuget -provider Chocolatier -Trusted
WARNING: MSG:UnableToDownload «https://go.microsoft.com/fwlink/?LinkID=627338&clcid=0x409» «»
WARNING: Unable to download the list of available providers. Check your internet connection.
Register-PackageSource : Cannot bind argument to parameter 'name' because it is an empty string.
At line:1 char:1
Can you confirm. Do you have that the same problem?
Is this a mistake on the side of the new provider Chocolatier 1.2.0 ?
This problem does not occur in a e.g. 1.0.4 Chocolatier version.
Originally posted by @Gregoorio in jianyunt/ChocolateyGet#15 (comment)
The text was updated successfully, but these errors were encountered: