question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unable to install powershell on MacOS without root access (brew)

See original GitHub issue

It seems that at this moment root/admin access is needed in order to install powershell on MacoS.

This is an issue for two reasons:

  • a shell should not need admin to be installed (i installed zsh, fish, tcsh, …) without needing admin
  • prevents automation and CI usage, like on Travis

Steps to reproduce

Follow install instructions and do:

brew cask install powershell

Expected behavior

Succeeding installation without prompting for root/admin password

Actual behavior

==> Caveats
A OpenSSL-backed libcurl is required for custom handling of certificates.
This is rarely needed, but you can install it with
  brew install curl --with-openssl
See https://github.com/PowerShell/PowerShell/issues/2211

==> Satisfying dependencies
All Formula dependencies satisfied.
==> Downloading https://github.com/PowerShell/PowerShell/releases/download/v6.0.0-beta.8/powershell-6.0.0-beta.8-osx.10.12-x64.pkg
Already downloaded: /Users/ssbarnea/Library/Caches/Homebrew/Cask/powershell--6.0.0-beta.8.pkg
==> Verifying checksum for Cask powershell
==> Uninstalling Cask powershell
==> Running uninstall process for powershell; your password may be necessary
==> Uninstalling packages:
==> Installing Cask powershell
==> Running installer for powershell; your password may be necessary.
==> Package installers may write to any location; options such as --appdir are ignored.

Environment data

MacOS High Sierra (10.13)

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:5
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
TravisEz13commented, Jul 11, 2019

This is by design… Please use the tar.gz if you want to install without admin access.

0reactions
TravisEz13commented, Apr 16, 2020

We could build a formula if it was in our own repo. Would that work? I have a prototype in my personal repo: https://github.com/TravisEz13/Homebrew-PowerShell

<div> GitHub</div><div>TravisEz13/Homebrew-PowerShell</div><div>Contribute to TravisEz13/Homebrew-PowerShell development by creating an account on GitHub.</div>
Read more comments on GitHub >

github_iconTop Results From Across the Web

Installing PowerShell on macOS
Install using Homebrew. Homebrew is the preferred package manager for macOS. Install PowerShell via Direct Download; Install from binary ...
Read more >
Get PowerShell remoting working on macOS without installing ...
The PowerShell software needs to use OpenSSH libraries to communicate with remote hosts (e.g. Office 365) and there are some hardcoded library ...
Read more >
Installation — Homebrew Documentation
Documentation for the missing package manager for macOS (or Linux).
Read more >
Can I install Homebrew without sudo privileges?
I'd like to install Homebrew in a Mac environment where I don't have sudo or admin privileges. Is this possible? macos · sudo...
Read more >
not able to install anything because of brew no such file or ...
Try uninstalling Homebrew and then re-installing solved issue for me. Uninstall Homebrew: /bin/bash -c "$(curl -fsSL https://raw.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found