Hi Guys, Please how can I resolve this error. Thanks
~ $ scoop update
& : The term 'C:\Users\adm\scoop\shims..\apps\scoop\current\bin\scoop.ps1' is
not recognized as the name of a cmdlet, function, script file, or operable
program. Check the spelling of the name, or if a path was included, verify
that the path is correct and try again.
At C:\Users\adm\scoop\shims\scoop.ps1:3 char:71
~ $ scoop help
& : The term 'C:\Users\adm\scoop\shims..\apps\scoop\current\bin\scoop.ps1' is
not recognized as the name of a cmdlet, function, script file, or operable
program. Check the spelling of the name, or if a path was included, verify
that the path is correct and try again.
At C:\Users\adm\scoop\shims\scoop.ps1:3 char:71
C:\Users\adm\scoop\shims..\apps\scoop\current\bin\scoop.ps1 That path is incorrectly joined. When this error occured? Have you change anything, installed fresh scoop, ..?
I also have this problem.
I tried installing wuzz which gave me this error:
C:\Users\solsen> scoop install wuzz
Updating Scoop...
Remove-Item : Cannot remove item
C:\Users\solsen\scoop\apps\scoop\current\supporting\validator\bin\Newtonsoft.Json.dll: Access to the path
'Newtonsoft.Json.dll' is denied.
At C:\Users\solsen\scoop\apps\scoop\current\libexec\scoop-update.ps1:76 char:9
+ Remove-Item -r -force $currentdir -ea stop
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : PermissionDenied: (Newtonsoft.Json.dll:FileInfo) [Remove-Item], UnauthorizedAccessExcept
ion
+ FullyQualifiedErrorId : RemoveFileSystemItemUnAuthorizedAccess,Microsoft.PowerShell.Commands.RemoveItemCommand
Now I keep getting:
C:\Users\solsen> scoop update
& : The term 'C:\Users\solsen\scoop\shims\..\apps\scoop\current\bin\scoop.ps1' is not recognized as the name of a
cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify
that the path is correct and try again.
At C:\Users\solsen\scoop\shims\scoop.ps1:3 char:71
+ if($myinvocation.expectingInput) { $input | & $path @args } else { & $path @ar ...
+ ~~~~~
+ CategoryInfo : ObjectNotFound: (C:\Users\solsen...t\bin\scoop.ps1:String) [], ParentContainsErrorRecord
Exception
+ FullyQualifiedErrorId : CommandNotFoundException
In my C:\Users\solsen\scoop\apps\scoop I have a current folder and a new folder. Is that right, or did the updater break my scoop?
In my case I had just the "new" folder. So, what I did was copy the "new" folder and rename the copy to "current" everything worked after this.
I have only current folder and nothing inside of it
PS C:\Users\ashft> dir C:\Users\user\scoop\apps\scoop\
Directory: C:\Users\user\scoop\apps\scoop
Mode LastWriteTime Length Name
---- ------------- ------ ----
d----- 9/13/2019 3:16 PM current
PS C:\Users\ashft> dir C:\Users\user\scoop\apps\scoop\current\
PS C:\Users\ashft>
OK, I have removed C:\Users\user\scoop\apps\scoop\ and able to reinstall with iex (new-object net.webclient).downloadstring('https://get.scoop.sh')
OK, I have removed
C:\Users\user\scoop\apps\scoop\and able to reinstall withiex (new-object net.webclient).downloadstring('https://get.scoop.sh')
It worked for me
BTW I also did what was advised on the scoop website if we have errors :
https://scoop.sh/
type this in powershell before the install
Set-ExecutionPolicy RemoteSigned -scope CurrentUser
maybe it helps, maybe not
Just run this command- iwr -useb get.scoop.sh | iex. I hope it will work.
go to "%USERPROFILE%\scoop\apps\scoopcurrent", and check it's empty or not.
At least, it should contain ".git" folder. Then, You can run "git pull" to get all content
Most helpful comment
In my case I had just the "new" folder. So, what I did was copy the "new" folder and rename the copy to "current" everything worked after this.