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

[Bug] neofetch: ForEach-Object : Cannot bind argument to parameter 'Path' because it is null. #3968

Closed
simcye opened this issue Sep 25, 2022 · 1 comment · Fixed by ScoopInstaller/Scoop#5247
Labels
bug Something isn't working

Comments

@simcye
Copy link

simcye commented Sep 25, 2022

Bug Report

Current Behavior

PS C:\Users\riddim> scoop install neofetch
WARN  Purging previous failed installation of neofetch.
ERROR 'neofetch' isn't installed correctly.
Removing older version (7.1.0).
'neofetch' was uninstalled.
Installing 'neofetch' (7.1.0) [64bit] from main bucket
Loading neofetch from cache
Checking hash of neofetch ... ok.
Linking ~\scoop\apps\neofetch\current => ~\scoop\apps\neofetch\7.1.0
Creating shim for 'neofetch'.
ForEach-Object : Cannot bind argument to parameter 'Path' because it is null.
At C:\Users\riddim\scoop\apps\scoop\current\lib\install.ps1:855 char:46
+     $shims | Where-Object { $_ -ne $null } | ForEach-Object {
+                                              ~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidData: (:) [ForEach-Object], ParameterBindingValidationException
    + FullyQualifiedErrorId : ParameterArgumentValidationErrorNullNotAllowed,Microsoft.PowerShell.Commands.ForEachObje
   ctCommand

Expected Behavior

successful install

System details

Windows version: 10 LTSC

OS architecture: 64bit

PowerShell version:

Major  Minor  Build  Revision
-----  -----  -----  --------
5      1      17763  316

Additional software:
none

Scoop Configuration

"lastUpdate": "2022-09-25T09:34:53.5354135-07:00"

@simcye simcye added the bug Something isn't working label Sep 25, 2022
@rashil2000 rashil2000 transferred this issue from ScoopInstaller/Scoop Sep 25, 2022
@rashil2000 rashil2000 changed the title [Bug] ForEach-Object : Cannot bind argument to parameter 'Path' because it is null. [Bug] neofetch: ForEach-Object : Cannot bind argument to parameter 'Path' because it is null. Sep 25, 2022
@rashil2000
Copy link
Member

You need to have git installed first

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

Successfully merging a pull request may close this issue.

2 participants