antfu-collective / ni

💡 Use the right package manager
MIT License
6.25k stars 208 forks source link

Recommended Setup for using Expo Install #212

Open ThatGuySam opened 2 months ago

ThatGuySam commented 2 months ago

Clear and concise description of the problem

There may already be a solution for this, but I couldn't find any documentation on this repo that matches my needs.

Expo recommends using npx expo install whenever you install new packages because it performs additional steps and checks to ensure compatibility with all your other React Native dependencies.

npx expo install automatically uses npm, yarn, or pnpm based on your repo.

Suggested solution

I'd love to just auto-detect Expo and use the command or a way to configure it explicitly.

Alternative

Either just use npx expo install or Maybe a simple alias command, but those aren't great solutions.

I didn't see any documentation that suggests ~/.nirc works for this.

Additional context

Expo Docs on npx expo install https://docs.expo.dev/more/expo-cli/#install

Validations