Running Scripts is Disabled on This System in Windows 11 | PowerShell NPM Not Working (Windows 11)

Опубликовано: 12 Май 2026
на канале: Future Programming
109
1

Are you getting errors like:
❌ “cannot be loaded because running scripts is disabled on this system”
❌ “npm.ps1 cannot be loaded because running scripts is disabled on this system”

Don’t worry — in this video, I’ll show you the *step-by-step fix* to enable script execution by changing the *PowerShell Execution Policy* safely.

This tutorial works for:

Windows 11 & Windows 10
PowerShell 5, 7, and above
Fixing *npm, npx, yarn, ng commands not working*
Admin and non-admin users

🔹 Official Docs (Execution Policies):
👉 [https://learn.microsoft.com/en-us/pow...\_execution\_policies?view=powershell-7.5](https://learn.microsoft.com/en-us/pow...)

📌 Topics Covered:

Why the “running scripts is disabled” error happens
Fix for `npm.ps1 cannot be loaded` error
Different PowerShell Execution Policies explained
How to use `Set-ExecutionPolicy` to fix the error
Temporary vs permanent solutions
Security considerations when enabling scripts

💡 After watching this video, you’ll be able to *run npm, npx, yarn, and other CLI tools* without issues on Windows 11.