chocolatey / Chocolatey.Cake.Recipe

A set of convention based Cake scripts for building Chocolatey projects
Apache License 2.0
5 stars 9 forks source link

Get-PackageProvider is not recognized when running builds as non-administrator #158

Open corbob opened 4 weeks ago

corbob commented 4 weeks ago

Checklist

What You Are Seeing?

Trying to run the build on Chocolatey CLI in a non-administrative terminal, receive the error: The term 'Get-PackageProvider' is not recognized as the name of a cmdlet, function, script file, or operable program.

What is Expected?

The build should finish.

How Did You Get This To Happen?

  1. Clone down https://github.com/chocolatey/choco
  2. Run build.bat in the cloned down repo as a non-admin user.
  3. Receive the error

image

System Details

Installed Packages

N/A

Output Log

See screenshot above.

Additional Context

This may stem from the fix for #130.