When NodeJs, JDK/JRE, and ANT are installed, it is necessary that they are accessible globally using the command prompt. Sometimes the environment variables are not configured and you may see errors stating 'node'/'java'/'ant' is not recognized as an internal or external command. You must configure the environment variables on your local system.
To configure environment variables
Go toThis PC > System Properties > Advanced System Settings .