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

npm install fails on clean codebase #1398

Open
ElasticCoder opened this issue Oct 28, 2024 · 1 comment
Open

npm install fails on clean codebase #1398

ElasticCoder opened this issue Oct 28, 2024 · 1 comment

Comments

@ElasticCoder
Copy link

ElasticCoder commented Oct 28, 2024

Hi all. I'm new to the project. I've got the latest version (8d4cc9a) and npm install errors:

npm error code ERESOLVE
npm error ERESOLVE unable to resolve dependency tree
npm error
npm error While resolving: undefined@undefined
npm error Found: [email protected]
npm error node_modules/react
npm error   react@"19.0.0-rc-cd22717c-20241013" from the root project
npm error
npm error Could not resolve dependency:
npm error peer react@">= 16" from @heroicons/[email protected]
npm error node_modules/@heroicons/react
npm error   @heroicons/react@"^2.1.5" from the root project
npm error
npm error Fix the upstream dependency conflict, or retry
npm error this command with --force or --legacy-peer-deps
npm error to accept an incorrect (and potentially broken) dependency resolution.
@ElasticCoder ElasticCoder changed the title npm install on clean codebase npm install fails on clean codebase Oct 28, 2024
@dharmveer97
Copy link
Contributor

dharmveer97 commented Nov 9, 2024

Hi all. I'm new to the project. I've got the latest version (8d4cc9a) and npm install errors:

npm error code ERESOLVE
npm error ERESOLVE unable to resolve dependency tree
npm error
npm error While resolving: undefined@undefined
npm error Found: [email protected]
npm error node_modules/react
npm error   react@"19.0.0-rc-cd22717c-20241013" from the root project
npm error
npm error Could not resolve dependency:
npm error peer react@">= 16" from @heroicons/[email protected]
npm error node_modules/@heroicons/react
npm error   @heroicons/react@"^2.1.5" from the root project
npm error
npm error Fix the upstream dependency conflict, or retry
npm error this command with --force or --legacy-peer-deps
npm error to accept an incorrect (and potentially broken) dependency resolution.

🛠️ Hey there! Here are some suggestions to try and resolve the issue:

  1. Reinstall dependencies:

    • Run bun install 🥐, yarn install 🧶, or pnpm install 🚀 to install dependencies again.
  2. 🗑️ Clean up and reinstall:

    • Delete the node_modules folder and run the commands mentioned above.
    • Make sure to remove the pnpm-lock.yaml file if using pnpm.
  3. 🔄 Switch Node.js versions:

    • Try using the latest LTS version of Node.js (e.g., switch using nvm or your preferred version manager).
  4. Last but not least try to use npm install --force (not recommended)

I hope these steps help you resolve the issue! 👍 Let me know how it goes.

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

2 participants