Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature] Installing PowerShell modules globally #5601

Closed
gerardog opened this issue Aug 2, 2023 · 1 comment · Fixed by #5424
Closed

[Feature] Installing PowerShell modules globally #5601

gerardog opened this issue Aug 2, 2023 · 1 comment · Fixed by #5424

Comments

@gerardog
Copy link
Contributor

gerardog commented Aug 2, 2023

Feature Request

Is your feature request related to a problem? Please describe.

Scoop currently does not support installing PowerShell modules globally.

It throws the following error: Installing PowerShell modules globally is not implemented!
image

Fixes: ScoopInstaller/Main#4989 & #5597

Describe the solution you'd like

However, doing so may not be so hard:

  • Installing a PS Module for the current user is done by creating a directory junction from $scoopdir\modules\$module_name to the module location (in my case ~\scoop\apps\{app}\current)
  • Installing it globally can be done by linking $env:ProgramFiles\WindowsPowerShell\Modules\$module_name to the module location.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant