Whenever I try to run npx create-react-app my-app, it shows the error:
npm ERR! code E404
npm ERR! 404 Not Found - GET https://registry.npmjs.org/@types/eslint/-/eslint-8.4.4.tgz - Not found
npm ERR! 404
npm ERR! 404 '@types/eslint@http://registry.npmjs.org/@types/eslint/-/eslint-8.4.4.tgz' is not in this registry.
When I try like eslint-8.4.0.tgz I can download it but 8.4.4 just doesn't exist.
npx
rather than a pre-existing project. You may be able to try and explicitly installv8.4.3
in a project that already exists instead before runningnpm install
(dependencies may honor it), but in your case you're using a global generator, so this isn't as easy of an option.