Open bitsal opened 2 years ago
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.
Versions: NPM - 8.19.2
Run command:
Error log: