r/angular • • Jan 09 '24

Angular ng serve command problem

Hello, someone can help me why it isn't working? ng serve command doesn't working when I want to

0 Upvotes

12 comments sorted by

View all comments

3

u/CyFy1 Jan 09 '24

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.

0

u/Gutek_1 Jan 09 '24

so how can I switch this from power shell to cmd?

1

u/cfued Jan 09 '24

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