-
Notifications
You must be signed in to change notification settings - Fork 2k
Closed
Labels
good first issueGood for newcomersGood for newcomers
Description
Describe the feature you'd like to request
Scenario:
Uninstall yarn completely from the system, and run
npx create-turbo@latest yourapp
It will fail at the second step where it should install the packages via yarn. Because yarn isn't there.
And it gives an unhelpful error:
Installing dependencies...
Aborting installation.
yarn install has failed.
Describe the solution you'd like
Instead of giving that error, there can be 3 approaches:
- Tell the user exactly that
yarn
isn't found on their system, so either set up the project usingnpm
. Just make it like:Press Y to setup with npm instead
, or they can quit and restart withnpm
. - the Second approach would be to say:
Command yarn not found. Press 1 to install it, or press 2 to set up with npm instead.
- Third way would be to simply install
yarn
automatically. Just put a message sayingInstalling yarn...
Describe alternatives you've considered
The alternative is to understand why yarn install
would fail, which could be because of many reasons I guess. Then figure out that you don't have yarn
installed, so install it first, then go back to the Turborepo setup.
fkapsahili and SerotoninaAbad
Metadata
Metadata
Assignees
Labels
good first issueGood for newcomersGood for newcomers