Vagrant Install-ChocolateyInstallPackage: $File parameter not recognized Vagrant Install-ChocolateyInstallPackage: $File parameter not recognized powershell powershell

Vagrant Install-ChocolateyInstallPackage: $File parameter not recognized


Due to the fact that you are using “splatting” of the PowerShell parameters, you have to use a slightly different syntax when actually using the packageArgs variable.

You should be doing this:

Install-ChocolateyInstallPackage @packageArgs

Rather than:

Install-ChocolateyInstallPackage $packageArgs

Have a look here:

https://github.com/chocolatey-community/chocolatey-coreteampackages/blob/master/automatic/calibre/tools/chocolateyInstall.ps1

For a complete example.