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

Problem installing dependencies #9

Open
DorKeinath opened this issue Aug 3, 2023 · 4 comments
Open

Problem installing dependencies #9

DorKeinath opened this issue Aug 3, 2023 · 4 comments
Labels
bug Something isn't working

Comments

@DorKeinath
Copy link

Hello!
I'm to stupid to install the dependencies. How do I do it?
With npm install I get

npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: astro-pwa-starter@1.0.0
npm ERR! Found: astro@2.0.6
npm ERR! node_modules/astro
npm ERR! dev astro@"2.0.6" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer astro@"^2.5.0" from @astrojs/tailwind@3.1.3
npm ERR! node_modules/@astrojs/tailwind
npm ERR! dev @astrojs/tailwind@"^3.0.1" 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.

@shaunchander
Copy link
Owner

Will need to look into this! Sorry for the late reply on this.

@shaunchander shaunchander added the bug Something isn't working label Aug 18, 2023
@asmolinski
Copy link

Hello!

It looks like you're running into a common dependency conflict issue. The template you're using is built on an older version of Astro (2.10), and there's a mismatch with the newer dependencies, particularly @astrojs/tailwind.

I had similar issues when working with this templates. Initially, I used the --force flag with npm install, but that's not always the best solution as it can lead to potential problems down the line.

What worked for me was upgrading Astro to the latest version. Given that you're working with an older template, you might want to consider migrating to Astro v3. They have a comprehensive upgrade guide which should help you make the transition smoothly.

I hope that helps!

@aleksa-codes
Copy link

aleksa-codes commented Oct 26, 2023

Hello everyone!

looks like tailwindcss is missing as a dependency, like mentioned here: astro/tailwind - manual install. Also as @asmolinski said I upgraded all dependencies and then add tailwindcss, after that it worked.

@jpasholk
Copy link

I'm having a similar issue, but only with the build on Netlify.

I'll post my error message later when I get home.

It's odd, because I'm able to build everything locally though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants