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

If you are facing “Error: You need to specify a command before moving on. Use ‘–help’ to view the available commands” Error then you are not alone. Lot of people facing the same error “Error: You need to specify a command before moving on. Use ‘–help’ to view the available commands.” Every time while using any one of the ng commands.

In this article we will explain how to fix “Error: You need to specify a command before moving on. Use ‘–help’ to view the available commands.”

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

Error: You need to specify a command before moving on. Use ‘–help’ to view the available commands’ occurred because of outdated version of ng.

This error occured because current version is depreciated and no longer in use.

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

To fix “You need to specify a command before moving on. Use ‘–help’ to view the available commands” error, You should update ng version in your System. After Updating ng version, error will be fixed. Also, you have to use ng version instead ng-- version.

npm uninstall -g @angular/cli
npm install -g @angular/cli

Conclusion

Now we have explained possible fixe includes Update Angular Version in the system to fix “Error: You need to specify a command before moving on. Use ‘–help’ to view the available commands” error. By using ng version rather than ng–version and updated ng version will fix the error.

I am hoping that You will be able to resolve “Error: You need to specify a command before moving on. Use ‘–help’ to view the available commands” by following above fix.

Read More:

Steam Summer Sale is Live now! To Check the Steam Summer Sale Clues Answers, Click Below: