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

Fails to install and build off a fresh clone and npm install #12

Open
sureshots-us opened this issue Nov 21, 2024 · 3 comments
Open

Fails to install and build off a fresh clone and npm install #12

sureshots-us opened this issue Nov 21, 2024 · 3 comments

Comments

@sureshots-us
Copy link

The readme suggests that npm is supported, but it does not build with it.

I see:

 npm install
npm error code ERESOLVE
npm error ERESOLVE unable to resolve dependency tree
npm error
npm error While resolving: [email protected]
npm error Found: [email protected]
npm error node_modules/eslint
npm error   dev eslint@"^9.15.0" from the root project
npm error   peer eslint@"^8.57.0 || ^9.0.0" from @typescript-eslint/[email protected]
npm error   node_modules/@typescript-eslint/parser
npm error     @typescript-eslint/parser@"^8.15.0" from the root project
npm error     peer @typescript-eslint/parser@">=6" from [email protected]
npm error     node_modules/eslint-plugin-typescript-sort-keys
npm error       eslint-plugin-typescript-sort-keys@"^3.3.0" from the root project
npm error
npm error Could not resolve dependency:
npm error peer eslint@"^7 || ^8" from [email protected]
npm error node_modules/eslint-plugin-typescript-sort-keys
npm error   eslint-plugin-typescript-sort-keys@"^3.3.0" 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.

There's at least one similiar warning for rxjs as well. I am suprised it builds for yarn or runs properly.

@sureshots-us
Copy link
Author

sureshots-us commented Nov 21, 2024

I realize this probably doesn't matter to you folks. it's just that I wanted to play with it and I didn't wanna install yarn. Feel free to close if it doesn't matter.

@sonnv1912
Copy link

I realize this probably doesn't matter to you folks. it's just that I wanted to play with it and I didn't wanna install yarn. Feel free to close if it doesn't matter.

npm install --force will ignore peer dependencies

@sureshots-us
Copy link
Author

Yes, it says that in the output. I am just surprised that yarn lets you do this without doing the equivalent. I guess it must be done in some non equivalent way, like in the lockfile itself?

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