[Solved] 404 Not Found when trying to install ESLint 8.4.4 with create-react-app
React JS
Mohit Mozumder
Problem:
I try to run npx create-react-app my-app, but 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.
Solution:
There is an issue with v.8.4.4 on the NPM. To solve this issue at first
Change your package.json and use 8.4.3 instead!
Pin it in "resolutions" for yarn
"resolutions": {
"@types/eslint": "8.4.3"
}
or "overrides" for npm
"overrides": {
"@types/eslint": "8.4.3"
}
Thank you for reading the article. If you find any further problem feel free to ask us.