aspnet-core-react-redux-playground-template
aspnet-core-react-redux-playground-template copied to clipboard
npm install error
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.
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.