ScoopInstaller / Scoop

A command-line installer for Windows.
https://scoop.sh
Other
20.85k stars 1.39k forks source link

[Bug] scoop-search.ps1 bug #6053

Closed weei-9527 closed 1 month ago

weei-9527 commented 1 month ago

Bug Report

Current Behavior

scoop-search.ps1 bug

Expected Behavior

When I search for software, a PowerShell error occurs

Additional context/output

scoop search NVIDIA MethodInvocationException: C:\Users\users\scoop\apps\scoop\current\libexec\scoop-search.ps1:38 Line | 38 | if (!$json.RootElement.TryGetProperty('bin', [ref] $bin)) { retur … | ~~~~~~~~~~~~ | Exception calling "TryGetProperty" with "2" argument(s): "The requested operation requires an element of type | 'Object', but the target element has type 'Array'." Results from local buckets...

Possible Solution

System details

Windows version: [11]

OS architecture: [64bit]

PowerShell version: [output of "7.4.3"]

Additional software: [Git]

Scoop Configuration

{
  "last_update": "2024-07-10T17:08:22.2686693+08:00",
  "scoop_repo": "https://github.com/ScoopInstaller/Scoop",
  "scoop_branch": "master",
  "gh_token": "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",
  "aria2-warning-enabled": true,
  "proxy": "127.0.0.1:7897",
  "aria2-enabled": false
}
niheaven commented 1 month ago

It's caused by wrong manifests. Please remove some unofficial buckets and try again.