You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This seems similar to #47 but that was marked as resolved. I was trying to test something with Puro but I've spent quite a while wrestling to try and get it to run.
Each time I run puro use stable I get a failure like this:
[W] dart version check failed, deleting cache
[E] powershell: Import-Module : File C:\program
files\powershell\7\Modules\Microsoft.PowerShell.Archive\Microsoft.PowerShell.Archive.psm1 cannot be loaded because
running scripts is disabled on this system. For more information, see about_Execution_Policies at
https:/go.microsoft.com/fwlink/?LinkID=135170.
At line:1 char:1
+ Import-Module Microsoft.PowerShell.Archive; Expand-Archive C:\Users\d ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : SecurityError: (:) [Import-Module], PSSecurityException
+ FullyQualifiedErrorId : UnauthorizedAccess,Microsoft.PowerShell.Commands.ImportModuleCommand
Expand-Archive : The 'Expand-Archive' command was found in the module 'Microsoft.PowerShell.Archive', but the module
could not be loaded. For more information, run 'Import-Module Microsoft.PowerShell.Archive'.
At line:1 char:45
+ Import-Module Microsoft.PowerShell.Archive; Expand-Archive C:\Users\d ...
+ ~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (Expand-Archive:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CouldNotAutoloadMatchingModule
[x] Assertion failed: "powershell subprocess failed with exit code 1"
#0 runProcess (package:puro/src/process.dart:121)
<asynchronous suspension>
#1 unzip (package:puro/src/env/engine.dart:153)
The first error ("cannot be loaded because
running scripts is disabled on this system. For more information, see about_Execution_Policies") suggests an execution policy issue, but I've tried setting this to both Bypass and Unrestricted and there's no change:
The 'Expand-Archive' command was found in the module 'Microsoft.PowerShell.Archive', but the module
could not be loaded. For more information, run 'Import-Module Microsoft.PowerShell.Archive'.
However running that command manually in the shell works fine:
I'm not really sure what else to try. The file in the error (C:\program files\powershell\7\Modules\Microsoft.PowerShell.Archive\Microsoft.PowerShell.Archive.psm1) does exist.
Also, when this error happens, the environments folder seems to be left in a broken state because trying to run the command again results in errors like:
I haven't been able to reproduce this unfortunately and don't have an idea of what could be going wrong, it's possible windows defender has decided puro is sus and shouldn't be allowed to load powershell scripts.
This seems similar to #47 but that was marked as resolved. I was trying to test something with Puro but I've spent quite a while wrestling to try and get it to run.
Each time I run
puro use stable
I get a failure like this:The first error ("cannot be loaded because
running scripts is disabled on this system. For more information, see about_Execution_Policies") suggests an execution policy issue, but I've tried setting this to both
Bypass
andUnrestricted
and there's no change:The error also says:
However running that command manually in the shell works fine:
I'm not really sure what else to try. The file in the error (
C:\program files\powershell\7\Modules\Microsoft.PowerShell.Archive\Microsoft.PowerShell.Archive.psm1
) does exist.Also, when this error happens, the environments folder seems to be left in a broken state because trying to run the command again results in errors like:
So I have to manually delete the
stable
folder before trying again (which is quite a pain while repeatedly trying to resolve the issue).I'm on Windows 11 Pro.
The text was updated successfully, but these errors were encountered: