-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
关于 yarn 的更新 #45
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
方式一:
更新 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: