diff --git a/_partials/cn/yarn.md b/_partials/cn/yarn.md index 5fb3d887..2564ad06 100644 --- a/_partials/cn/yarn.md +++ b/_partials/cn/yarn.md @@ -3,9 +3,16 @@ 让我们一起来安装[`yarn`](https://classic.yarnpkg.com/en/docs/install): ```bash -npm install --global yarn +corepack enable +yarn set version stable ``` +```bash +exec zsh +``` + +⚠️ 如果你看到任何错误信息,请尝试运行 `npm install -g corepack` 然后再次运行上面的命令。 + 重启终端并运行: ```bash diff --git a/_partials/es/yarn.md b/_partials/es/yarn.md index 71ccaa1f..b96faeb4 100644 --- a/_partials/es/yarn.md +++ b/_partials/es/yarn.md @@ -5,10 +5,16 @@ En una terminal, ejecuta los siguientes comandos: ```bash -npm install --global yarn +corepack enable +yarn set version stable +``` + +```bash exec zsh ``` +⚠️ Si ves algún mensaje de error, intenta ejecutar `npm install -g corepack` y luego vuelve a ejecutar los comandos anteriores. + Luego ejecuta este comando: ```bash diff --git a/_partials/fr/yarn.md b/_partials/fr/yarn.md index e1a06066..fffde7dd 100644 --- a/_partials/fr/yarn.md +++ b/_partials/fr/yarn.md @@ -5,10 +5,16 @@ Exécute les commandes suivantes dans le terminal : ```bash -npm install --global yarn +corepack enable +yarn set version stable +``` + +```bash exec zsh ``` +⚠️ Si tu rencontres des messages d'erreur, essaye d'exécuter `npm install -g corepack` puis exécute à nouveau les commandes ci-dessus. + Puis exécute la commande suivante : ```bash diff --git a/_partials/pt/yarn.md b/_partials/pt/yarn.md index 442191a5..ce79f2f5 100644 --- a/_partials/pt/yarn.md +++ b/_partials/pt/yarn.md @@ -5,13 +5,16 @@ Em um terminal, execute os seguintes comandos: ```bash -npm install --global yarn +corepack enable +yarn set version stable ``` ```bash exec zsh ``` +⚠️ Se vires quaisquer mensagens de erro, tenta executar `npm install -g corepack` e, em seguida, volta a executar os comandos acima. + Em seguida, execute o seguinte comando: ```bash diff --git a/_partials/yarn.md b/_partials/yarn.md index 967556b7..0dadbb92 100644 --- a/_partials/yarn.md +++ b/_partials/yarn.md @@ -5,9 +5,12 @@ In a terminal, run the following commands: ```bash -npm install --global yarn +corepack enable +yarn set version stable ``` +⚠️ If you see any error messages, try running `npm install -g corepack` and then run the commands above again. + ```bash exec zsh ```