npm error "cannot be loaded because running scripts is disabled on this system"| Set-ExexutionPolicy
Вставка
- Опубліковано 3 січ 2025
- You must set the PowerShell Execution Policy from Restricted to RemoteSigned or Unrestricted to allow local PowerShell scripts to run.
For more information about PowerShell Execution Policy, type help about_signing or help Set-ExecutionPolicy at the PowerShell command prompt.
Procedure
Select Start -- All Programs Windows PowerShell version Windows PowerShell.
Type-- Set-ExecutionPolicy RemoteSigned -- to set the policy to RemoteSigned.
Type Set--ExecutionPolicy Unrestricted --to set the policy to Unrestricted.
Type Get-ExecutionPolicy to verify the current settings for the execution policy.
Type Exit.