-
Notifications
You must be signed in to change notification settings - Fork 14
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
In the setup script, install yarn
with npm
#6696
base: main
Are you sure you want to change the base?
Conversation
This is the recommendation cross platform. We'll already have npm through installing Node.
Size Change: 0 B Total Size: 2.1 MB ℹ️ View Unchanged
|
if linux && ! installed yarn; then | ||
sudo apt-get install yarn | ||
install_yarn() { | ||
if ! installed yarn; then |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will this recognise if yarn is installed with Homebrew?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes I think so. The installed
function uses the hash
utility, and I can see that it can understands utilities installed with homebrew. For example in bash:
bash-3.2$ which dev-nginx
/opt/homebrew/bin/dev-nginx
bash-3.2$ hash dev-nginx # no output == found it
bash-3.2$ hash dev-nginxssss
bash: hash: dev-nginxssss: not found
What are you doing in this PR?
In the setup script install
yarn
withnpm
.Why are you doing this?
This is the approach recommended by yarn. I'm looking at general improvements to the setup script and this is a first baby step.
How to test
How can we measure success?
Have we considered potential risks?
Accessibility test checklist
Screenshots