-
-
Notifications
You must be signed in to change notification settings - Fork 54
Open
Description
Description
Install failed with error:
Get-ExecutionPolicy : The 'Get-ExecutionPolicy' command was found in the module 'Microsoft.PowerShell.Security', but th
e module could not be loaded. For more information, run 'Import-Module Microsoft.PowerShell.Security'.
At D:\Service\pm2\src\windows\configure-policy.ps1:7 char:11
+ $policy = Get-ExecutionPolicy -Scope CurrentUser
+ ~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (Get-ExecutionPolicy:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CouldNotAutoloadMatchingModuleSteps to Reproduce
- run wt.exe with administrator
- run
npm run setup
Environment
windows11
wt.exe(windows terminal)
powershell
// npm run info
❯ npm run info
> [email protected] info
> node ./src/bundle-info/current.js
Running on: 2025/10/23, pm2-installer 3.4.3 with node v22.19.0 and npm 10.9.3 on win32-10.0.22631.
After switching to the old version of PowerShell, it succeeded...
Metadata
Metadata
Assignees
Labels
No labels