The install.ps1 fails (dependency issues), 'Update-SessionEnvironment' is not recognized with/without Chocolately, able to install, not able to get it to output [fixed, but needs docs or better way to check this before or during runtime at script run or source) #407
Labels
Description of the bug
When I first try an install of the CLI slight, it seams to 'Install' but fails to actually run?
the error message it provides is as follows:
No output here, why?? so I checked my current Environment variables to see if install.ps1 set them
My Used System Environment:
YES!, we see here at the last line that : C:\slight is being added to path, and proof its IN the ACTUAL path:
but wait, why is it still not generating anything ??
I found out that the cmdlt 'Update-SessionEnvironment' was just not available to call. looks to be a Chocolatey CLI based Windows Package manger module here, (do not confuse with the outdated depreciated version that most may have if using older OS versions, here
however I seamed to not have any bin or initialization of it:
SO i installed Choco from here:
Installed choco and and after re-starting script. no change,
To Reproduce
I personally do not know (yet) why this is a Bug or why it is for me at least breaking, I can only explain its behavior in my environment stated above.
Additional context
I Tested in different environments to try and make it work, such as VS code, and alternate PowerShell versions, all except for Linux or UNIX, which I do know very well but already have that env in WSL reserved for something else even though i very much know it would just work under that. YET windows seams to always give us some new worries...
Tested this inside the VS (Visual Studio) code's environment PS shell, and it returns the exact same behavior,
Testing with PS OG shell V1 (the original 'default' version packaged with any win install before upgrading) returns same behavior.
Testing with Admin rights yields same behavior:
Am I still missing something?? Do i have to explicitly add Update-SessionEnvironmenT to my environment path? or run them sideby side?
Either way, it should not be scoped like so.
The text was updated successfully, but these errors were encountered: