variáveis de ambiente esta configurada, estava usando antes.
Estou com seguinte erro:
ERROR: JAVA_HOME is set to an invalid directory: C:\Program Files\Java\jdk1.8.0_251\bin
Please set the JAVA_HOME variable in your environment to match the
location of your Java installation.