Git Product home page Git Product logo

Comments (10)

Gregoorio avatar Gregoorio commented on September 2, 2024 1

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.
I don't know what was the reason for the problem before. Currently the registered repository works in provider version 1.2.0.
Sorry for the confusion and thank you for your analysis.

from chocolatier.

ethanbergstrom avatar ethanbergstrom commented on September 2, 2024

Hey @Gregoorio,

I'm not able to reproduce the issue you're seeing. What version of PowerShell are you using?

from chocolatier.

Gregoorio avatar Gregoorio commented on September 2, 2024

@ethanbergstrom,

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.

from chocolatier.

ethanbergstrom avatar ethanbergstrom commented on September 2, 2024

Could you paste the entire terminal output, including the registration command, in this thread?

from chocolatier.

Gregoorio avatar Gregoorio commented on September 2, 2024

Hi @ethanbergstrom,

I've used command:
Register-PackageSource -name TEST -location https://myrepo.hs/nuget -provider Chocolatier -Trusted

And this is error:

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

  • Register-PackageSource -name TEST -location https://myrepo.hs. ...+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~+ CategoryInfo : InvalidData: (Microsoft.Power...erPackageSource:RegisterPackageSource) [Register-PackageSource], Exception + FullyQualifiedErrorId : ParameterArgumentValidationErrorEmptyStringNotAllowed,New-PackageSource,Microsoft.PowerShell.PackageManagement.Cmdlets.RegisterPackageSource

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."

from chocolatier.

ethanbergstrom avatar ethanbergstrom commented on September 2, 2024

I just tried it in a clean Windows Sandbox environment, and I'm not seeing that issue:
image

from chocolatier.

ethanbergstrom avatar ethanbergstrom commented on September 2, 2024

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?

from chocolatier.

Gregoorio avatar Gregoorio commented on September 2, 2024

Yes, you are right. My machine has no internet.
I have download a Chocolatier package from another machine that has the Internet and copy folders to a machine without the Internet.
I have an external nugget repository by (nuget server).
From a machine that doesn't have internet I register my nuget repository. In version 1.0.4 of Provider Chocolatier it works. However in version 1.2.0 I have a problem with the 'name' parameter.

from chocolatier.

ethanbergstrom avatar ethanbergstrom commented on September 2, 2024

I'm not sure what your issue may be then, other than some sort of issue in your copy process to the disconnected machine.

I just tried copying the module into a Windows Sandbox instance without any internet connection, and it worked after I set the execution policy to RemoteSigned.

image

from chocolatier.

ethanbergstrom avatar ethanbergstrom commented on September 2, 2024

Great! Glad you were able to get it working.

from chocolatier.

Related Issues (7)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.