-
Notifications
You must be signed in to change notification settings - Fork 189
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Install-Package: No match was found for the specified search criteria and package name #360
Comments
@thnk2wn You can install this preview version using Install-Module command. Install-Module PackageManagement -Force -Repository PSGallery -AllowPrerelease
# Launch a new PS session |
Thanks @bmanikm. It also seems adding "-AllowPrerelease" is required for this. However after installing and starting a new PS session, installing the package just results in execution hanging indefinitely: |
@bmanikm After quite some time it eventually came back with an error: Install-Package : Unable to find dependent package(s) (System.Reflection.Emit.Lightweight) At line:1 char:1 + Install-Package MetadataExtractor + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : ObjectNotFound: (System.Reflection.Emit.Lightweight:String) [Install-Package], Exception + FullyQualifiedErrorId : UnableToFindDependencyPackage,Microsoft.PowerShell.PackageManagement.Cmdlets.InstallPackage |
@bmanikm -AllowPreRelease does not work for me?
EDIT: This is what fixed this issue for me:
Log:
|
@thnk2wn It looks like all the versions of System.Reflection.Emit.Lightweight and System.Reflection.Emit packages got unlisted on NuGet.org. This is a duplicate of #322. @turbolego Prerelease versioning support was enabled in 1.6.0 version of the PowerShellGet module. To install the prerelease versions of a module, you need to install the latest version of PowerShellGet first using the instructions provided here |
Thank you @bmanikm ! Worked for me:
|
I'm unable to use Install-Package for a valid Nuget package (MetadataExtractor) using PS 6.0.2 on Mac. Am I doing something wrong?
Install-Package with Version and Destination
Install-Package with Version:
Install-Package no version or destination with Verbose:
Install-Package using ProviderName NuGet and Destination
PS Version:
The text was updated successfully, but these errors were encountered: