Compartiilhe

Migrei recentemente do Linux para o Windows e não estava conseguindo rodar de forma alguma o yarn install ai pesquisando no stackoverflow achei a solução.

Esse é o erro que eu estava tomando

yarn install v1.22.19
[1/4] Resolving packages...
[2/4] Fetching packages...
error An unexpected error occurred: "https://registry.yarnpkg.com/@glidejs/glide/-/glide-3.5.2.tgz: self signed certificate in certificate chain".
info If you think this is a bug, please open a bug report with the information provided in "URl do PROJETO\yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.

Pra resolução do problema foi muito fácil.

Se você utiliza o yarn pode rodar o comando abaixo:

yarn config set "strict-ssl" false -g

Ou se você utiliza o npm, pode rodar o comando abaixo:

npm config set "strict-ssl" false -g

Após a execução do comando eu rodei o yarn install e instalou tudo certinho, sem nenhum problema.

Fonte: stack overflow


Compartiilhe