Solucionado (ver solução)
Solucionado
(ver solução)
1
resposta

Erro ao utilizar o Leiningen no Windows 10

Boa noite! Estou tentando instalar o Leiningen no Windows 10 mas não estou conseguindo. Após baixar o .bat e adicioná-lo no path do Windows, tentei usar o comando lein repl , mas recebi o seguinte erro:

C:\Users\Gustavo>lein repl

C:\Users\Gustavo\.lein\self-installs\leiningen-2.8.1-standalone.jar can not be found.
You can try running "lein self-install"
or change LEIN_JAR environment variable
or edit lein.bat to set appropriate LEIN_JAR path.

E depois, utilizei o comandolein self-install , mas obtive o seguinte erro:

C:\Users\Gustavo>lein self-install
Downloading Leiningen now...
Exceção ao chamar "DownloadFile" com "2" argumento(s): "A solicitação foi anulada: Não foi possível criar um canal
seguro para SSL/TLS."
No linha:1 caractere:145
+ ... che]::DefaultNetworkCredentials; $client.DownloadFile($a, $f)} "https ...
+                                      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
    + FullyQualifiedErrorId : WebException


Failed to download https://github.com/technomancy/leiningen/releases/download/2.8.1/leiningen-2.8.1-standalone.zip

It is possible that the download failed due to "powershell",
"curl" or "wget"'s inability to retrieve GitHub's security certificate.
The suggestions below do not check certificates, so use this only if
you understand the security implications of not doing so.

The PowerShell failed to download the latest Leiningen version.
Try to use "curl" or "wget" to download Leiningen by setting up
the HTTP_CLIENT environment variable with one of the following
values:

  a) set HTTP_CLIENT=wget --no-check-certificate -O
  b) set HTTP_CLIENT=curl -f -L -k -o

NOTE: Make sure to *not* add double quotes when setting the value
      of HTTP_CLIENT

Já tentei usar um instalador também, mas ocorreu exatamente o mesmo erro. Alguém poderia me ajudar? Abraços!

1 resposta
solução!

Consegui resolver o problema seguindo esta ordem de comandos:

set HTTP_CLIENT=curl -f -L -k -o
lein self-install
lein repl

Obrigado!

Quer mergulhar em tecnologia e aprendizagem?

Receba a newsletter que o nosso CEO escreve pessoalmente, com insights do mercado de trabalho, ciência e desenvolvimento de software