Fix PowerShell - Running Scripts Is Disabled On This System

Channel:
Subscribers:
26,100
Published on ● Video Link: https://www.youtube.com/watch?v=6MD0jifRtDs



Duration: 0:00
266 views
9


When using PowerShell, you may get the error, "npm.ps1 cannot be loaded because running scripts is disabled on this system"

You can check your execution policy by typing,
Get-ExecutionPolicy
If it is restricted, then you can unrestrict it using this command.
Set-ExecutionPolicy Unrestricted -Scope CurrentUser

For Threejs courses visit https://sbcode.net/
For discount coupons visit https://sbcode.net/coupons

00:00 Explaining the "PS1 Scripts Disabled" Problem
00:15 Vite, Node.js Upgrade, and Initial Setup
00:30 Verifying Node.js Version; Encountering Error
00:45 Same npm error for npm run dev, start commands
01:00 Command Prompt as a temporary npm workaround
01:15 Checking current PowerShell execution policy: Restricted
01:30 Setting execution policy to Unrestricted for current user
01:45 Confirming unrestricted policy and npm fix
02:00 Successfully running npm commands in PowerShell
02:15 Concluding remarks and Threejs project reference

#vite
#powershell
#threejs