I had installed nim using scoop before uninstalling it. However, when I am trying to reinstall, I get the following has error:
Checking hash of nim-2.0.2_x64.zip ... Get-FileHash : The file 'C:\Users\Abdullah-Mahmood\scoop\apps\nim\2.0.2\nim-2.0.2_x64.zip' cannot be read: Operation
did not complete successfully because the file contains a virus or potentially unwanted software.
At C:\Users\Abdullah-Mahmood\scoop\apps\scoop\current\lib\install.ps1:674 char:16
+ $actual = (Get-FileHash -Path $file -Algorithm $algorithm).Hash.T ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ReadError: (C:\Users\Abdull...m-2.0.2_x64.zip:PSObject) [Write-Error], WriteErrorExcepti
on
+ FullyQualifiedErrorId : FileReadError,Get-FileHash
You cannot call a method on a null-valued expression.
At C:\Users\Abdullah-Mahmood\scoop\apps\scoop\current\lib\install.ps1:674 char:5
+ $actual = (Get-FileHash -Path $file -Algorithm $algorithm).Hash.T ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [], RuntimeException
+ FullyQualifiedErrorId : InvokeMethodOnNull
Get-Content : Operation did not complete successfully because the file contains a virus or potentially unwanted
software.
At C:\Users\Abdullah-Mahmood\scoop\apps\scoop\current\lib\core.ps1:1176 char:16
+ return Get-Content $file -Encoding byte -TotalCount 8
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ReadError: (C:\Users\Abdull...m-2.0.2_x64.zip:String) [Get-Content], IOException
+ FullyQualifiedErrorId : GetContentReaderIOError,Microsoft.PowerShell.Commands.GetContentCommand
ERROR Hash check failed!
App: main/nim
URL: https://nim-lang.org/download/nim-2.0.2_x64.zip
First bytes:
Expected: 948dbf8e3fdd1b5242e3d662fd25c50e9b2586e097be8a85c22d7db2bde70bad
Actual:
Please try again or create a new issue by using the following link and paste your console output:
https://github.com/ScoopInstaller/Main/issues/new?title=nim%402.0.2%3a+hash+check+failed
I had installed nim using scoop before uninstalling it. However, when I am trying to reinstall, I get the following has error: