cra-template-must-have-libraries
cra-template-must-have-libraries copied to clipboard
Create app from the template doesn't work
Versions: NPM - 8.19.2
Run command:
npx create-react-app web --template cra-template-must-have-libraries
Error log:
Installing template dependencies using npm...
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: [email protected]
npm ERR! Found: @typescript-eslint/[email protected]
npm ERR! node_modules/@typescript-eslint/eslint-plugin
npm ERR! @typescript-eslint/eslint-plugin@"3.8.0" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer @typescript-eslint/eslint-plugin@"2.x" from [email protected]
npm ERR! node_modules/eslint-config-react-app
npm ERR! eslint-config-react-app@"5.2.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/2022-10-02T18_15_58_263Z-debug-0.log
`npm install --no-audit --save @babel/[email protected] @material-ui/[email protected] @material-ui/[email protected] @octokit/[email protected] @octokit/[email protected] @reduxjs/[email protected] @testing-library/[email protected] @testing-library/[email protected] @testing-library/[email protected] @types/[email protected] @types/[email protected] @types/[email protected] @types/[email protected] @types/[email protected] @types/[email protected] @types/[email protected] @types/[email protected] @types/[email protected] @types/[email protected] @types/[email protected] @typescript-eslint/[email protected] @typescript-eslint/[email protected] @wojtekmaj/[email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] @types/[email protected] @types/[email protected] @types/[email protected] [email protected] [email protected]` failed
The cra-template
prefix is not required.
npx create-react-app react-d3-hello-world --template must-have-libraries
I have Yarn 1.22.19, Node 16.19.1, npm 9.6.1, and npx 9.6.1 versions installed. Neither of these commands work any more:
yarn create react-app react-d3-hello-world --template must-have-libraries
npx create-react-app react-d3-hello-world --template must-have-libraries
Yarn issues a ton of warnings about unsupported template package versions and then ends with the following lines:
info There appears to be trouble with your network connection. Retrying...
error An unexpected error occurred: "https://registry.yarnpkg.com/@material-ui/icons/-/icons-4.11.2.tgz: ESOCKETTIMEDOUT".
info If you think this is a bug, please open a bug report with the information provided in "C:\\Git Repositories\\personal\\react-d3-hello-world\\yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command.
Aborting installation.
yarnpkg add --exact react react-dom react-scripts cra-template-must-have-libraries --cwd C:\Git Repositories\personal\react-d3-hello-world has failed.
Deleting generated file... package.json
Done.
error Command failed.
Exit code: 1
NPX issues the same errors as noted in @bitsal's original comment.
I checked the author's website but he does not acknowledge any issues with his React with D3 book having outdated tech stack setup information. This is certainly a frustrating way to try and learn D3 when I can't get the starter 'Hello World' app up and running.