Skip to content

Instantly share code, notes, and snippets.

@Pacheco95
Created December 8, 2020 22:47
Show Gist options
  • Select an option

  • Save Pacheco95/75d6f56d55ebed3b8864be51b8ae7e82 to your computer and use it in GitHub Desktop.

Select an option

Save Pacheco95/75d6f56d55ebed3b8864be51b8ae7e82 to your computer and use it in GitHub Desktop.
react-boilerplate-cra-template ERESOLVE unable to resolve dependency tree
$ npx create-react-app --template cra-template-rb cra-boilerplate-ts
Need to install the following packages:
create-react-app
Ok to proceed? (y) y
Creating a new React app in /home/user/repositories/cra-boilerplate-ts.
Installing packages. This might take a couple of minutes.
Installing react, react-dom, and react-scripts with cra-template-rb...
added 2014 packages, and audited 2014 packages in 41s
122 packages are looking for funding
run `npm fund` for details
found 0 vulnerabilities
Initialized a git repository.
Installing template dependencies using npm...
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! Found: typescript@4.0.5
npm ERR! node_modules/typescript
npm ERR! typescript@"4.0.5" from the root project
npm ERR! peer typescript@">=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta" from tsutils@3.17.1
npm ERR! node_modules/tsutils
npm ERR! tsutils@"^3.17.1" from @typescript-eslint/eslint-plugin@4.9.1
npm ERR! node_modules/@typescript-eslint/eslint-plugin
npm ERR! peer @typescript-eslint/eslint-plugin@"^4.0.0" from eslint-config-react-app@6.0.0
npm ERR! node_modules/eslint-config-react-app
npm ERR! eslint-config-react-app@"^6.0.0" from react-scripts@4.0.1
npm ERR! node_modules/react-scripts
npm ERR! 1 more (react-scripts)
npm ERR! tsutils@"^3.17.1" from @typescript-eslint/typescript-estree@4.9.1
npm ERR! node_modules/@typescript-eslint/typescript-estree
npm ERR! @typescript-eslint/typescript-estree@"4.9.1" from @typescript-eslint/experimental-utils@4.9.1
npm ERR! node_modules/@typescript-eslint/experimental-utils
npm ERR! @typescript-eslint/experimental-utils@"4.9.1" from @typescript-eslint/eslint-plugin@4.9.1
npm ERR! node_modules/@typescript-eslint/eslint-plugin
npm ERR! 1 more (eslint-plugin-jest)
npm ERR! 1 more (@typescript-eslint/parser)
npm ERR! 1 more (@typescript-eslint/typescript-estree)
npm ERR! 1 more (ts-node)
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peerOptional typescript@"^3.2.1" from react-scripts@4.0.1
npm ERR! node_modules/react-scripts
npm ERR! react-scripts@"4.0.1" 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.
npm ERR!
npm ERR! See /home/user/.npm/eresolve-report.txt for a full report.
npm ERR! A complete log of this run can be found in:
npm ERR! /home/user/.npm/_logs/2020-12-08T22_36_42_911Z-debug.log
`npm install --save @reduxjs/toolkit@1.4.0 fontfaceobserver@2.1.0 i18next@19.7.0 i18next-browser-languagedetector@6.0.1 react@16.13.1 react-app-polyfill@1.0.6 react-dom@16.13.1 react-helmet-async@1.0.6 react-i18next@11.7.2 react-redux@7.2.1 react-router-dom@5.2.0 redux-injectors@1.3.0 redux-saga@1.1.3 sanitize.css@12.0.1 styled-components@5.1.0 web-vitals@0.2.4 @testing-library/jest-dom@5.11.4 @testing-library/react@11.0.2 @types/fontfaceobserver@0.0.6 @types/jest@25.1.4 @types/node@14.6.4 @types/react@16.9.49 @types/react-dom@16.9.8 @types/react-redux@7.1.9 @types/react-router-dom@5.1.5 @types/react-test-renderer@16.9.3 @types/rimraf@3.0.0 @types/shelljs@0.8.8 @types/styled-components@5.1.3 @types/testing-library__jest-dom@5.9.2 @types/webpack@4.41.22 @types/webpack-env@1.15.2 chalk@4.1.0 cross-env@7.0.2 eslint-config-prettier@6.11.0 eslint-plugin-prettier@3.1.4 eslint-plugin-react-hooks@4.1.0 husky@4.2.5 i18next-scanner@2.11.0 jest-styled-components@7.0.3 lint-staged@10.3.0 node-plop@0.26.2 plop@2.7.4 prettier@2.1.1 react-test-renderer@16.13.1 replace-in-file@6.1.0 rimraf@3.0.2 serve@11.3.2 shelljs@0.8.4 stylelint@13.7.0 stylelint-config-recommended@3.0.0 stylelint-config-styled-components@0.1.1 stylelint-processor-styled-components@1.10.0 ts-node@9.0.0 typescript@4.0.5` failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment