Closed DanAsBjorn closed 1 year ago
I am running chocolatey version 2.0
https://github.com/mandiant/VM-Packages/issues/409
Looks like the issue
I have the same issue, you can run this command "Set-Alias -Name chocolatey -Value choco". It worked for me!
cool, pretty simple! I just ended up deleting chocolatey and running $env:chocolateyVersion = '1.4.0' before the install script
Setting the Alias fixed the issue for me however is now resulting in a call depth overflow. See error below.
"Invoke-ChocolateyBoxstarter : The script failed due to call depth overflow. At line:1 char:151
Any idea how to resolve?
Reinstalling chocolatey with version 1.4.0 should fix the issue.
$env:chocolateyVersion = '1.4.0'
Run this in powershell and run the install.ps1 script it should work
This is caused by Boxstarter not being compatible with Chocolatey 2 (released few days ago) as it uses the deprecated (now removed) cinst
. As @moatazabdullah mentions, you can run $env:chocolateyVersion = '1.4.0'
before installing flare-vm till https://github.com/chocolatey/boxstarter/pull/533 fix is merged and released.
We should update the boxstarter version check after https://github.com/chocolatey/boxstarter/pull/533 is released (it is already merged)
Installing fails after clicking ok on the GUI part of install with the output
Looking at line 843-846 of C:\ProgramData_VM\vm.common\vm.common.psm1 it looks like it is using the command chocolatey rather than choco
Example:
looks like 843 and 844 need changing to choco.