ng.ps1 cannot be loaded because running scripts is disabled on this system – QUICK FIX

Techbriel
trying to run a command inside your project or PowerShell and then get this error “ng.ps1 cannot be loaded because running scripts is disabled on this system”
 Techbriel

If you use angular, Node, JAVA, python, Javascript or any other programming language on windows computer then you may have come across this issue, or perhaps you trying to run a command inside your project terminal in VS code or powershell and then get this error “ng.ps1 cannot be loaded because running scripts is disabled on this system”. Dont worry you are not alone. This tutorial will assist you in fixing this error irrespective of your scenario.

 Techbriel

Below is a video tutorial on how to fix it but if you are more of a reader then continue reading

According to angular documentation “https://angular.io/guide/setup-local” power script is disabled by default

 Techbriel

To fix this, navigate to your project directory e.g C:/users/demouser/projectdirectory/ and run the following command

Set-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy RemoteSigned

Now when you try to run your Angular command or the command you were trying to execute before it should work perfectly now.

If you are not getting it right or having difficulties on your side, please watch the video tutorial.

YouTube video tutorial

If you’ve installed angular before and you’re having “ng command not found” issues I have written a detailed step to fix it here.  Also if you want to completely uninstall angular globally from your mac computer, I have written a step-by-step guide to uninstall mac completely from your mac and also made a video that will guide you.

Don’t forget to leave us a comment in the comment section below, like our videos, if you don’t like them please hit the dislike button I’m sure you won’t do that lol, it helps us grow. 

If you enjoyed this post, we’ll be very grateful if you’d help spread it by sharing it with your friends using the share button. you can also get our latest updates by following us on Facebook, TwitterLinkedin, and Instagram. Don’t forget to subscribe to our Youtube channel for more Tech Tutorials, Tech reviews, and Tech reviews.

Total
0
Shares
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments
Previous Post
 Techbriel

How to Install Angular on windows – Step by step

Next Post
 Techbriel

What is Quarkus and what is Quakus good for?

Related Posts
0
Would love your thoughts, please comment.x
()
x
close button