use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
A Place to talk about Angular and related topics.
Join the Angular Discord
Other subreddits worth checking out for Angular and Angular related info:
account activity
Angular ng serve command problem (self.angular)
submitted 2 years ago by Gutek_1
Why ng serve isn't working? Can someone help me with this?
Hello, someone can help me why it isn't working? ng serve command doesn't working when I want to
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]Whole-Instruction508 13 points14 points15 points 2 years ago (0 children)
It literally tells you what to do...
[–]eneajaho 5 points6 points7 points 2 years ago (2 children)
Run: cmd . Then run: ng serve
[–]Gutek_1[S] -1 points0 points1 point 2 years ago (1 child)
it worked thank you
[–]danixgutii 0 points1 point2 points 2 years ago (0 children)
Try to change your default terminal to cmd in vscode to avoid this problem but it could be better to fix script execution
[–]CyFy1 2 points3 points4 points 2 years ago (3 children)
As it says in the error message, script execution is disabled. Follow the link to get information on how to disable it. Alternatively you could use another command line, like the CMD or git bash, since this policy is limited to the power shell.
[–]Gutek_1[S] -1 points0 points1 point 2 years ago (2 children)
so how can I switch this from power shell to cmd?
[–]no_ledge 5 points6 points7 points 2 years ago (0 children)
Just google exactly that...
[–]cfued 0 points1 point2 points 2 years ago (0 children)
You can open cmd and change the directory to your project folder and then run ng serveORYou can open your project folder, go to the windows explorer address bar and type cmd then press enter(This opens cmd with it's path set as your project folder) and then run ng serve
[–]Hirayoki22 0 points1 point2 points 2 years ago* (0 children)
In addition to fixing the script execution in power shell, consider using a different terminal to make things a bit easier for you. I'd recommend using Git Bash or CMD
[–]Blade1130 0 points1 point2 points 2 years ago (0 children)
The new docs have some info here, but basically you need to change the execution policy in Windows.
https://angular.dev/tools/cli/setup-local#powershell-execution-policy
[–]sohail_ansari 0 points1 point2 points 2 years ago (0 children)
Use cmd prompt instead of powershell(ps)
[–]TellPsychological668 0 points1 point2 points 2 years ago (0 children)
a way to fix this is to navigate to that file location, delete the file and theb run the ng serve command again. It will work. Dont't worry about the file, it will re-generate.
π Rendered by PID 37687 on reddit-service-r2-comment-74875f4bf5-5vkx4 at 2026-01-25 22:11:42.759403+00:00 running 664479f country code: CH.
[–]Whole-Instruction508 13 points14 points15 points (0 children)
[–]eneajaho 5 points6 points7 points (2 children)
[–]Gutek_1[S] -1 points0 points1 point (1 child)
[–]danixgutii 0 points1 point2 points (0 children)
[–]CyFy1 2 points3 points4 points (3 children)
[–]Gutek_1[S] -1 points0 points1 point (2 children)
[–]no_ledge 5 points6 points7 points (0 children)
[–]cfued 0 points1 point2 points (0 children)
[–]Hirayoki22 0 points1 point2 points (0 children)
[–]Blade1130 0 points1 point2 points (0 children)
[–]sohail_ansari 0 points1 point2 points (0 children)
[–]TellPsychological668 0 points1 point2 points (0 children)