close

[Solved] Error: You need to specify a command before moving on. Use ‘–help’ to view the available commands

While creating a new angular project I am facing the following error: Error: You need to specify a command before moving on. Use ‘–help’ to view the available commands in Angular. We are going to Learn about All Possible Solutions So Lets Get Start with This Article.

How Error: You need to specify a command before moving on. Use ‘–help’ to view the available commands Occurs?

While creating a new angular project I am facing the following error:

Error: You need to specify a command before moving on. Use ‘–help’ to view the available commands

So here I am writing all the possible solutions that I have tried to resolve this error.

How To Solve Error: You need to specify a command before moving on. Use ‘–help’ to view the available commands?

  1. How To Solve Error: You need to specify a command before moving on. Use ‘–help’ to view the available commands?

    To Solve Error: You need to specify a command before moving on. Use ‘–help’ to view the available commands angular/cli has released the Latest version 14.0.0 at June 6, 2022 and as the new version was Released some old versions are deprecated. So If You are using the OLD version then you might face this error. So Solution is Just Update your angular/cli to its latest version By Reinstalling it. First of All Just uninstall @angular/cli by running this command: npm uninstall -g @angular/cli And Then Install @angular/cli by running this command: npm install -g @angular/cli Above Command will install the Latest version of @angular/cli and Now, Your error should be solved. Thank you.

  2. Error: You need to specify a command before moving on. Use ‘–help’ to view the available commands

    To Solve Error: You need to specify a command before moving on. Use ‘–help’ to view the available commands angular/cli has released the Latest version 14.0.0 at June 6, 2022 and as the new version was Released some old versions are deprecated. So If You are using the OLD version then you might face this error. So Solution is Just Update your angular/cli to its latest version By Reinstalling it. First of All Just uninstall @angular/cli by running this command: npm uninstall -g @angular/cli And Then Install @angular/cli by running this command: npm install -g @angular/cli Above Command will install the Latest version of @angular/cli and Now, Your error should be solved. Thank you.

Solution 1: Reinstall angular/cli

angular/cli has released the Latest version 14.0.0 at June 6, 2022 and as the new version was Released some old versions are deprecated. So If You are using the OLD version then you might face this error. So Solution is Just Update your angular/cli to its latest version By Reinstalling it. First of All Just uninstall @angular/cli by running this command.

npm uninstall -g @angular/cli

And Then Install @angular/cli by running this command:

npm install -g @angular/cli

Above Command will install the Latest version of @angular/cli and Now, Your error should be solved. Thank you.

Conclusion

It’s all About this error. Hope We solved Your error. Comment below Your thoughts and your queries. Also, Comment below which solution worked for you?

Also, Read

Leave a Comment