We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Do you want to request a feature or report a bug? Bug
What is the current behavior? The installation script fails if ~/.yarn exists but does not contain a Yarn installation.
If the current behavior is a bug, please provide the steps to reproduce.
rm -rf ~/.yarn mkdir ~/.yarn curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version 0.17.9
Results in:
Installing Yarn! ./install.sh: line 164: yarn: command not found
What is the expected behavior? Installation script should work and install Yarn
The text was updated successfully, but these errors were encountered:
It seems to me that this check:
if [ -n `which yarn` ]; then
is not failing as expected since which yarn is returning something that is not-null even if there is no yarn in the current path.
which yarn
null
yarn
Sorry, something went wrong.
which
Fix which check during yarn install (#2061) (#2071)
2a0afc7
Fix install.sh (#309)
ea58899
* Fix yarnpkg/yarn#2061 (yarnpkg/yarn#2071)
bcbe523
Successfully merging a pull request may close this issue.
Do you want to request a feature or report a bug?
Bug
What is the current behavior?
The installation script fails if ~/.yarn exists but does not contain a Yarn installation.
If the current behavior is a bug, please provide the steps to reproduce.
Results in:
What is the expected behavior?
Installation script should work and install Yarn
The text was updated successfully, but these errors were encountered: