我是安装官网教程安装的 yarn
https://yarnpkg.com/en/docs/install#mac-stable,环境是 macos
$brew install yarn
收到警告 Warning: yarn 1.16.0 is already installed, it's just not linked
You can use `brew link yarn` to link this version.
所以就执行了
$ brew link yarn
收到信息:Linking /usr/local/Cellar/yarn/1.16.0...
Error: Could not symlink bin/yarn
Target /usr/local/bin/yarn
already exists. You may want to remove it:
rm '/usr/local/bin/yarn'
To force the link and overwrite all conflicting files:
brew link --overwrite yarn
To list all files that would be deleted:
brew link --overwrite --dry-run yarn
然后执行了
$ rm '/usr/local/bin/yarn'
$ brew link --overwrite yarn
收到提示:Linking /usr/local/Cellar/yarn/1.16.0... 2 symlinks created
执行:$ brew upgrade yarn
得到错误:Error: yarn 1.16.0 already installed
$ yarn --version
1.3.2
怎么会安装好的版本号跟提示的不一致, 查看了 stackoverflow 的教程,也无法升级上去啊
这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。
https://www.v2ex.com/t/569903
V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。
V2EX is a community of developers, designers and creative people.