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

Failed to acquire module from GitHub in macOS #66

Closed
mkht opened this issue Jul 21, 2018 · 0 comments
Closed

Failed to acquire module from GitHub in macOS #66

mkht opened this issue Jul 21, 2018 · 0 comments
Labels
bug Something isn't working

Comments

@mkht
Copy link
Owner

mkht commented Jul 21, 2018

In macOS with PSCore 6.1

PS> pspm install 'owner/repo'
Modules will be saved in "/Users/mkht/Documents/pspm/Modules"
Join-Path : Cannot bind argument to parameter 'Path' because it is null.
At /Users/mkht/Documents/pspm/functions/getModule.ps1:155 char:36
+     $TempDir = New-Item (Join-Path $env:TEMP '/pspm') -Force -ItemTyp ...
+                                    ~~~~~~~~~
+ CategoryInfo          : InvalidData: (:) [Join-Path], ParameterBindingValidationException
+ FullyQualifiedErrorId : ParameterArgumentValidationErrorNullNotAllowed,Microsoft.PowerShell.Commands.JoinPathCommand

macOS環境には$env:TEMPが存在しないのが原因
$env:TEMPDIRとしなければいけない

@mkht mkht added the bug Something isn't working label Jul 21, 2018
mkht added a commit that referenced this issue Jul 21, 2018
- Download from GitHub private repository [#12]
- Fixed issue that failed to download module from GitHub in macOS [#66]
@mkht mkht closed this as completed Jul 21, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant