纱线:如何使用终端升级纱线版本? [英] Yarn: How to upgrade yarn version using terminal?

查看:31
本文介绍了纱线:如何使用终端升级纱线版本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

yarn应该如何升级到最新版本?

How should yarn be upgraded to the latest version?

推荐答案

对于 macOS 用户,如果您通过 brew 安装了 yarn,则可以使用以下命令对其进行升级:

For macOS users, if you installed yarn via brew, you can upgrade it using the below command:

brew upgrade yarn

在 Linux 上,只需在终端运行以下命令:

On Linux, just run the below command at the terminal:

$ curl --compressed -o- -L https://yarnpkg.com/install.sh | bash

在 Windows 上,使用 Chocolatey

On Windows, upgrade with Chocolatey

choco upgrade yarn

信用:在以下答案的帮助下添加了答案

Credits: Added answers with the help of the below answers

https://stackoverflow.com/a/53710422/842607

这篇关于纱线:如何使用终端升级纱线版本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆