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

PowerShell v7 Installation #180

Open
merddyin opened this issue Mar 2, 2023 · 2 comments
Open

PowerShell v7 Installation #180

merddyin opened this issue Mar 2, 2023 · 2 comments

Comments

@merddyin
Copy link

merddyin commented Mar 2, 2023

Not entirely sure if PS7 is intended to be supported as of yet, however I wanted to report an issue with installing. If installing using PS5, there are no errors or issues. When installing with PS7 via Install-PSResource, the module partially installs before throwing an error:

Install-PSResource: Unable to successfully install package 'string': 'Cannot generate a PowerShell object for a ScriptBlock evaluating dynamic expressions.

It then goes on to show the dynamic expression, which appears to be the module manifest for the 'string' module. A review of content after the fact reveals that the 'string' module is not installed, though other dependent modules are.

Running PowerShell 7.3.3 on Windows 11 (Insiders Build) via Windows Terminal.

@FriedrichWeinmann
Copy link
Member

Hi @merddyin,
sorry about the incredibly late response :(

Unfortunately, I cannot reproduce the issue - works just fine for me. Does this still happen for you?
With what version of PowerShellGet?

@merddyin
Copy link
Author

merddyin commented Jun 1, 2023

As mentioned, was using PowerShell 7.3.3. I believe I may have traced the issue to a conflict type scenario. The module was previously installed in PowerShell 5 into my Documents\MicrosoftPowerShell\Modules directory. I was being a bit lazy and decided to install again on PS 7 side, into Documents\PowerShell\Modules (as is default). I was able to work around the problem by ensuring the PS5 copy of the module was up to date and just copying it over.

Not sure if this helps or not.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants