You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Warning: --ignore-dependencies is an unsupported Homebrew developer flag!
Adjust your PATH to put any preferred versions of applications earlier in the
PATH rather than using this unsupported flag!
并且会报出如下错误❌:
Error: An exception occurred within a child process:
RuntimeError: /usr/local/opt/node not present or broken
Please reinstall node. Sorry :(
方式一:
更新 yarn,先移除 yarn,重新下载
按如上操作,会出现以下警告⚠️ :
并且会报出如下错误❌:
其原因是,找不到
yarn
的依赖项(node)。我们需要给对应的文件夹创建一个 node 的软链:
mkdir /usr/local/opt/node ln -s ~/.nvm/versions/node/v12.16.1/bin/node /usr/local/opt/node
再重新执行 install 即可:
然后就是开心的✅:
方式二:
参考资料:
yarnpkg/website#913
https://classic.yarnpkg.com/en/docs/usage
yarnpkg/yarn#7306
The text was updated successfully, but these errors were encountered: