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

[Help] Failed to run npm install. #75

Open
dowenliu-xyz opened this issue Jun 7, 2024 · 0 comments
Open

[Help] Failed to run npm install. #75

dowenliu-xyz opened this issue Jun 7, 2024 · 0 comments

Comments

@dowenliu-xyz
Copy link

I'm sorry to bother you, Sentinel teams. I'm not familiar with front-end tech-stack.

When I try run npm install at local, I just got this:

$ npm i           
npm WARN ancient lockfile 
npm WARN ancient lockfile The package-lock.json file was created with an old version of npm,
npm WARN ancient lockfile so supplemental metadata must be fetched from the registry.
npm WARN ancient lockfile 
npm WARN ancient lockfile This is a one-time fix-up, please be patient...
npm WARN ancient lockfile 
npm WARN ERESOLVE overriding peer dependency
npm WARN While resolving: [email protected]
npm WARN Found: [email protected]
npm WARN node_modules/react
npm WARN   dev react@"15.4.2" from the root project
npm WARN   4 more (docsite, react-scroll, react-tilt, react-dom)
npm WARN 
npm WARN Could not resolve dependency:
npm WARN peer react@"^15.5.4 || ^16.0.0" from [email protected]
npm WARN node_modules/react-scroll
npm WARN   react-scroll@"^1.7.9" from the root project
npm WARN ERESOLVE overriding peer dependency
npm WARN While resolving: [email protected]
npm WARN Found: [email protected]
npm WARN node_modules/react
npm WARN   dev react@"15.4.2" from the root project
npm WARN   4 more (docsite, react-scroll, react-tilt, react-dom)
npm WARN 
npm WARN Could not resolve dependency:
npm WARN peer react@"^15.6.2" from [email protected]
npm WARN node_modules/react-dom
npm WARN   dev react-dom@"15.4.2" from the root project
npm WARN   3 more (docsite, react-scroll, react-tilt)
npm WARN ERESOLVE overriding peer dependency
npm WARN While resolving: [email protected]
npm WARN Found: [email protected]
npm WARN node_modules/react
npm WARN   dev react@"15.4.2" from the root project
npm WARN   4 more (docsite, react-scroll, react-tilt, react-dom)
npm WARN 
npm WARN Could not resolve dependency:
npm WARN peer react@"^15.6.2" from [email protected]
npm WARN node_modules/react-dom
npm WARN   dev react-dom@"15.4.2" from the root project
npm WARN   3 more (docsite, react-scroll, react-tilt)
npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR! 
npm ERR! While resolving: [email protected]
npm ERR! Found: [email protected]
npm ERR! node_modules/react-dom
npm ERR!   dev react-dom@"15.4.2" from the root project
npm ERR!   peer react-dom@"^15.0.0 || ^16.0.0-beta || ^16.0.0" from [email protected]
npm ERR!   node_modules/react-tilt
npm ERR!     react-tilt@"^0.1.4" from the root project
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer react-dom@"^15.5.4 || ^16.0.0" from [email protected]
npm ERR! node_modules/react-scroll
npm ERR!   react-scroll@"^1.7.9" from the root project
npm ERR! 
npm ERR! Conflicting peer dependency: [email protected]
npm ERR! node_modules/react-dom
npm ERR!   peer react-dom@"^15.5.4 || ^16.0.0" from [email protected]
npm ERR!   node_modules/react-scroll
npm ERR!     react-scroll@"^1.7.9" 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.

How can I solve this? I'm trying to solve the issue I submitted in Sentinel main project. #3413

My environment:
Mac Studio 2022 with apple m1 max chip
MacOS Sonoma 14.3
Node v20.11.1 installed via nvm.

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

1 participant