Skip to content
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

Don't pass @latest when creating Expo app with yarn #30

Merged
merged 1 commit into from
Jan 26, 2024

Conversation

stevehanson
Copy link

When starting a new thoughtbelt project with npx thoughtbelt MyApp --yarn, thoughtbelt was attempting to create the Expo app with yarn using the yarn create expo@latest MyApp command. This was failing, because yarn create does not seem to support the @latest symbol. This PR updates so we no longer pass @latest when creating the Expo app with Yarn.

The error was:

...
? Ready to proceed? yes

⠸ Creating new app with create-expo-appnode:internal/errors:867
  const err = new Error(message);
              ^

Error: Command failed: yarn create expo@latest UsaGym
warning package.json: No license field
/bin/sh: /Users/shanson/.yarn/bin/create-expo@latest: No such file or directory
error Command failed.
Exit code: 127
Command: /Users/shanson/.yarn/bin/create-expo@latest
Arguments: UsaGym
Directory: /Users/shanson/dev/thoughtbelt-playground

@stevehanson stevehanson force-pushed the sh/fix-yarn-expo-command branch from 696efa0 to 32ddf7e Compare January 26, 2024 03:15
@stevehanson stevehanson force-pushed the sh/fix-yarn-expo-command branch from 32ddf7e to 49895fb Compare January 26, 2024 03:33
@stevehanson stevehanson merged commit c3c4a8c into main Jan 26, 2024
2 checks passed
@stevehanson stevehanson deleted the sh/fix-yarn-expo-command branch January 26, 2024 19:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant