当我尝试通过家用啤酒安装纱线时。得到以下消息
My-MacBook-Pro:share gt$ brew install yarn
Error: You must `brew link node` before yarn can be installed
My-MacBook-Pro:share gt$
运行啤酒链接节点导致
My-MacBook-Pro:share gt$ brew link node
Linking /usr/local/Cellar/node/7.6.0...
Error: Could not symlink bin/node
Target /usr/local/bin/node
already exists. You may want to remove it:
rm '/usr/local/bin/node'
To force the link and overwrite all conflicting files:
brew link --overwrite node
To list all files that would be deleted:
brew link --overwrite --dry-run node
My-MacBook-Pro:share gt$
所以我尝试了oftrite选项
My-MacBook-Pro:share gt$ brew link --overwrite node
Linking /usr/local/Cellar/node/7.6.0...
Error: Could not symlink share/doc/node/gdbinit
/usr/local/share/doc/node is not writable.
My-MacBook-Pro:share gt$
在/usr/local/share上做了一个chmod,然后投诉/usr/local/lib/dtrace不写
我是在正确的路径上还是只是一个兔子洞?安装纱线的干净方式是什么?
在MacOS上安装纱线的最简单方法之一是通过我们的Shell脚本。您可以通过在终端中运行以下代码来安装纱线:
curl -o- -L https://yarnpkg.com/install.sh | bash