The choco
environment variable
has been altered. I ran into a similar problem when I tried setting env variable
for Java SDK
, but I was quick to recognize it when I ran the commands
presented to me in the documentation which completely overwrites my env Path variable
.
If you are sure you've choco installed. Check your System variables
and look for Path variable
if it has some values like C:\ProgramData\chocolatey\choco.exe;C:\ProgramData\chocolatey\bin
if not add
it.
And you can save you time by installing it. Installing via cmd line
Powershell:
Copy and Paste the code below to your PowerShell
Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
OR Window CMD.exe:
@"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin"
After installation: run choco
you see the version of chocolatey installed. Mine
Chocolatey v0.10.14
Please run 'choco -?' or 'choco <command> -?' for help menu.
hopefully this help read more