ScoopInstaller / Install

📥 Next-generation Scoop (un)installer
https://get.scoop.sh
The Unlicense
684 stars 88 forks source link

Failed on installing Scoop #85

Open abdulbadii opened 1 month ago

abdulbadii commented 1 month ago

Description

follow 'Readme' instruction, but at step CLI, drop the folder path on 'D:\application\Scoop'

PS C:\Users\budi> .\install.ps1 -ScoopDir 'Scoop' -ScoopGlobalDir 'F:\GlobalScoopApps' -NoProxy
Initializing...
Downloading...
Extracting...
Creating shim...
Resolve-Path : Cannot find path 'C:\Users\budi\Scoop\shims\Scoop\apps\scoop\current\bin\scoop.ps1' because it does 
not exist.
At C:\Users\budi\install.ps1:313 char:21
+     $relativePath = Resolve-Path -Relative $path
+                     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (C:\Users\budi\S...t\bin\scoop.ps1:String) [Resolve-Path], ItemNotFo 
   undException
    + FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.ResolvePathCommand

PS C:\Users\budi\Scoop\shims> cd ..

PS C:\Users\budi\Scoop> dir

    Directory: C:\Users\budi\Scoop

Mode                 LastWriteTime         Length Name                                                             
----                 -------------         ------ ----                                                             
d-----          5/5/2024   1:55 AM                apps                                                             
d-----          5/5/2024   1:56 AM                buckets                                                          
d-----          5/5/2024   1:56 AM                shims  

So how is the correct way of CLI one ?

LPG-VERSION commented 1 month ago

image Be sure to use the full path, the install.ps1 file is not compatible with relative paths