
So, let’s set the environment variable, as shown below: If you look closely at the error message that was encountered earlier, a suggestion to set the environment variable for Chocolatey was made.

Let’s go back to the command-line interface and continue from where we left off. Once you’ve done so, rerun the code snippet and you should see this:Ĭurrently, an added security check has been set for scripts. Then run the following code snippet: Get-ExecutionPolicy AllSignedĪfter running the code snippet above, you will be prompted to respond “Yes” to secure your system against scripts you don’t trust. Open PowerShell as an admin and set the required rights, as shown below: Get-ExecutionPolicy While installing Chocolatey, you may run into the following error shown in the code snippet image here: Open it as an admin and run the following PowerShell scripts: -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "::SecurityProtocol = 3072 iex ((New-Object ).DownloadString(''))" & SET "PATH=%PATH% %ALLUSERSPROFILE%\chocolatey\bin" Let’s navigate to the command line (CMD). Builds on technology already familiar to devs.Downloaded files are verified by checksums.You can put Chocolatey install commands into your PowerShell scripts.Large number of applications/utilities available.Unlike other package managers like Winget, RuckZuck, and Yarn, Chocolatey brings several benefits with it, such as: Its ability to scan through installed packages for virus detection means you can be confident that packages remain secure.

You can think of it as similar to the aforementioned APT or Homebrew.

If you’ve used a Linux or Mac system as a developer, you may well agree with me that their flexible and secure options for managing packages are second to none. A guide to using Node on Windows with Chocolatey Chime Princewill Follow I am a passionate MERN stack engineer currently working with Descasio as a full-stack engineer.
