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 error #8

Open
jamsoft opened this issue Apr 12, 2023 · 1 comment
Open

npm install error #8

jamsoft opened this issue Apr 12, 2023 · 1 comment

Comments

@jamsoft
Copy link

jamsoft commented Apr 12, 2023

When running the npm install command in the ClientApp root errors with:

# npm resolution error report

While resolving: [email protected]
Found: [email protected]
node_modules/typescript
  dev typescript@"^5.0.2" from the root project

Could not resolve dependency:
peerOptional typescript@"^3.2.1 || ^4" from [email protected]
node_modules/react-scripts
  react-scripts@"^5.0.1" from the root project

Conflicting peer dependency: [email protected]
node_modules/typescript
  peerOptional typescript@"^3.2.1 || ^4" from [email protected]
  node_modules/react-scripts
    react-scripts@"^5.0.1" from the root project

Fix the upstream dependency conflict, or retry
this command with --force or --legacy-peer-deps
to accept an incorrect (and potentially broken) dependency resolution.
@nesterovoa
Copy link

nesterovoa commented Jul 1, 2023

For those who, like me, just want to launch a project without learning a ton of stuff and feeling sick from typical situation when project from the internet only runs for a few days without errors:

the error goes away when the line "typescript": "^5.0.2" is deleted from ".\ClientApp\package.json" file. Don't think that this dependency is crucial.

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