ScoopInstaller / Main

📦 The default bucket for Scoop.
https://scoop.sh
The Unlicense
1.54k stars 925 forks source link

[Bug]: Error on installing ninja: "Can't shim 'ninja.exe' File doesn't exist" #5497

Closed Axi5 closed 5 months ago

Axi5 commented 5 months ago

Prerequisites

Package Name

ninja

Expected/Current Behaviour

I haven't used Scoop in ages so maybe there's something else I need to do but as far as I'm aware this should just work.

Executing scoop install ninja results in failing to create a shim for ninja.

Steps to Reproduce

> scoop install ninja
Installing 'ninja' (1.11.1) [64bit] from main bucket
Loading ninja-win.zip from cache
Checking hash of ninja-win.zip ... ok.
Extracting ninja-win.zip ... done.
Linking ~\scoop\apps\ninja\current => ~\scoop\apps\ninja\1.11.1
Creating shim for 'ninja'.
Can't shim 'ninja.exe': File doesn't exist.

Possible Solution

N/a

Scoop and Buckets Version

> scoop --version
Current Scoop version:
v0.3.1 - Released at 2022-11-15

'extras' bucket:
aaa7e2b69 (HEAD -> master, origin/master, origin/HEAD) flowgorithm@4.0: Fix hash (Closes #12748)

'main' bucket:
4a759ba65 (HEAD -> master, origin/master, origin/HEAD) listmonk: Update to version 3.0.0

Scoop Config

> scoop config

last_update         scoop_repo                              scoop_branch
-----------         ----------                              ------------
04/02/2024 19:33:20 https://github.com/ScoopInstaller/Scoop master

PowerShell Version

> $PSVersionTable

Name                           Value
----                           -----
PSVersion                      7.4.0
PSEdition                      Core
GitCommitId                    7.4.0
OS                             Microsoft Windows 10.0.22631
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

Additional Softwares

No response

Axi5 commented 5 months ago

Hmm everything checked out, so I assumed it was an environment issue. I restarted and this works now. Weirdly restarting terminal didn't work, I had to do a full restart.