I've installed the angular-cli with the command npm install -g @angular/cli. When I try to run the command ng new and create a new project, an error occurs:
⠙ Installing packages (npm)...npm WARN deprecated [email protected]: See https://github.com/lydell/source-map-resolve#deprecated
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@https://registry.npmjs.org/@types/eslint/-/eslint-8.4.4.tgz' is not in this registry.
npm ERR! 404 You should bug the author to publish it (or use the name yourself!)
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.
How should this error be resolved?
Happening for others as well when attempting to install React or any other framework dependent on eslint.
create-react-app aborting - ESLINT not found
Heres a link to Eslint github: https://github.com/DefinitelyTyped/DefinitelyTyped/issues/61032
A workaround for now is to run ng new app --skip-install
, then add "@types/eslint": "8.4.3"
to your package.json and do npm install
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With