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

Can't install the starter monorepo using the CLI #487

Open
1 of 3 tasks
Elie-A-98 opened this issue Aug 8, 2024 · 9 comments
Open
1 of 3 tasks

Can't install the starter monorepo using the CLI #487

Elie-A-98 opened this issue Aug 8, 2024 · 9 comments

Comments

@Elie-A-98
Copy link

Elie-A-98 commented Aug 8, 2024

Is there an existing issue for this?

  • I have searched the existing issues

Do you want this issue prioritized?

  • Yes, I have sponsored
  • Not urgent

Current Behavior

Following the docs to clone a minimal starter project npx create-solito-app@latest my-solito-app is throwing this error

> yarn install Usage Error: Unsupported package manager specification ([email protected])

I have bun installed (version 1.1.22)

Expected Behavior

To clone successfully

Steps To Reproduce

No response

Versions

- Solito: 4.2.2
- Next.js: -
- Expo: -
- React Native: -

Screenshots

No response

Reproduction

No response

@Elie-A-98 Elie-A-98 changed the title Can't clone solito Can't install starter template Aug 8, 2024
@Elie-A-98 Elie-A-98 changed the title Can't install starter template Can't install the starter monorepo using the CLI Aug 8, 2024
@Autsider666
Copy link

+1, can't install either the default or the with-tailwind alternative + both crash during build when using the deploy button in the documentation:
image

@jeffreyvalle
Copy link
Contributor

+1, can't install either the default or the with-tailwind alternative + both crash during build when using the deploy button in the documentation: image

in project root in package.json, try changing "packageManager": "[email protected]" to "packageManager": "[email protected]" as a temp fix and see if it works. This allowed me to yarn install and build. Using the CLI to install the starter monorepo is still mostly working, it will clone the repo to your machine but will break after cd into the new directory it creates for your project because it tries to yarn install. After you run the CLI the first time, make the change I described to package.json in root and see if you have any luck.

@Elie-A-98
Copy link
Author

@jeffreyvalle but u cannot use the cli to install. You can just clone the blank ans try. I did and it worked

@jeffreyvalle
Copy link
Contributor

@Elie-A-98 thanks, you're correct after testing further my suggestion does not fix anything :)

@SimonHudec
Copy link

it's far more broken than this, even if you manage to fix the bun packager, be ready for another round of errors

@nandorojo
Copy link
Owner

I think this was caused by #480

@Elie-A-98
Copy link
Author

Elie-A-98 commented Aug 13, 2024

I think this was caused by #480

Also patch-package does not work with bun. I used bun patch and had to move to linux because it had some permission issues on windows.

But so far everything is working. I just had to clone the blank repo instead of installing it

@nandorojo
Copy link
Owner

We should switch this back to yarn 4 I think

@tremby
Copy link

tremby commented Aug 15, 2024

Additionally, with --use-npm (which I prefer), there's this:

$ npx create-solito-app@latest my-solito-app -t with-tailwind --use-npm
🧑🎤 Creating solito app...

Creating a new solito app in my-solito-app...
my-solito-app folder created.
Copying template into my-solito-app...

Downloaded template into my-solito-app...

my-solito-app created!
Installing packages. This might take a couple of minutes.

> npm install
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: [email protected]
npm ERR! Found: [email protected]
npm ERR! node_modules/expo
npm ERR!   expo@"^51.0.23" from [email protected]
npm ERR!   apps/expo
npm ERR!     [email protected]
npm ERR!     node_modules/expo-app
npm ERR!       workspace apps/expo from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer expo@"^49.0.0" from [email protected]
npm ERR! node_modules/expo-router
npm ERR!   expo-router@"^2.0.5" from [email protected]
npm ERR!   apps/expo
npm ERR!     [email protected]
npm ERR!     node_modules/expo-app
npm ERR!       workspace apps/expo from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR!
npm ERR!
npm ERR! For a full report see:
npm ERR! /home/me/.npm/_logs/2024-08-15T23_03_28_038Z-eresolve-report.txt

npm ERR! A complete log of this run can be found in: /home/me/.npm/_logs/2024-08-15T23_03_28_038Z-debug-0.log

[solito] error installing node_modules with npm
 npm exited with non-zero code: 1

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

No branches or pull requests

6 participants