Skip to content

Chocolateys PowerShell Installer Module uses non PowerShell 2 compatible syntax #2398

Closed
@beatstick

Description

@beatstick

Expected behaviour:
I expect a package being updated

How Did You Get This To Happen? (Steps to Reproduce):
I issuecd the command: choco upgrade all -y

What are you seeing:

You must provide a value expression on the right-hand side of the '-' operator.
The specified module 'C:\ProgramData\chocolatey\helpers\chocolateyInstaller.psm1
' was not loaded because no valid module file was found in any module directory.

ERROR: The term 'Install-ChocolateyPackage' is not recognized as the name of a c
mdlet, function, script file, or operable program. Check the spelling of the nam
e, or if a path was included, verify that the path is correct and try again.
The upgrade of gimp was NOT successful.
Error while running 'C:\ProgramData\chocolatey\lib\gimp\tools\chocolateyInstall.
ps1'.
See log for details.

Chocolatey upgraded 0/1 packages. 1 packages failed.
See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).

Failures

  • gimp (exited -1) - Error while running 'C:\ProgramData\chocolatey\lib\gimp\to
    ols\chocolateyInstall.ps1'.
    See log for details.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions