Skip to content
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

Unable To Download Module From PowershellGallery #7

Closed
thedwindlingdba opened this issue Nov 6, 2017 · 2 comments
Closed

Unable To Download Module From PowershellGallery #7

thedwindlingdba opened this issue Nov 6, 2017 · 2 comments
Labels
can't repro We'd need more information to address this.

Comments

@thedwindlingdba
Copy link

Hello,

When attempting to install the Pansies module from the powershell gallery using the following syntax
Find-Module -Name "Pansies" -IncludeDependencies | Install-Module -Force -AllowClobber -Verbose

I receive the following error (I have also attached a screenshot of said error):
PackageManagement\Install-Package : The module 'Pansies' cannot be installed
or updated because it is not a properly-formed module.
At C:\Program
Files\WindowsPowerShell\Modules\PowerShellGet\1.5.0.0\PSModule.psm1:1980
char:34

  • ... $null = PackageManagement\Install-Package @PSBoundParameters
  •                  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : InvalidOperation: (Microsoft.Power....InstallPac
      kage:InstallPackage) [Install-Package], Exception
    • FullyQualifiedErrorId : InvalidManifestModule,Test-ValidManifestModule,M
      icrosoft.PowerShell.PackageManagement.Cmdlets.InstallPackage
      image
@scrthq
Copy link

scrthq commented Nov 24, 2017

Same here when trying to install on a new machine, causes the newest version of PowerLine to fail because it can't load Pansies as a dependancy

@Jaykul
Copy link
Member

Jaykul commented Sep 8, 2018

If you're trying to install a version over the top of the same version that's already imported, you would have trouble, because the module includes a binary assembly that would be locked in memory.

The current prerelease version works. Can you try that?

Install-Module Pansies -Scope Currentuser -AllowPrerelease -AllowClobber

@Jaykul Jaykul added the can't repro We'd need more information to address this. label Sep 8, 2018
@Jaykul Jaykul closed this as completed Jul 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
can't repro We'd need more information to address this.
Projects
None yet
Development

No branches or pull requests

3 participants