Closed chrisl8 closed 2 years ago
I'm seeing this as well. The exact same thing. I tried in two different environments. It was working this morning.
Interesting, and I just got this when trying to use create-react-app
npx create-react-app react-website
Need to install the following packages:
create-react-app
Ok to proceed? (y) y
npm WARN deprecated tar@2.2.2: This version of tar is no longer supported, and will not receive security updates. Please upgrade asap.
Creating a new React app in /home/chrisl8/Work/DemoApp/react-website.
Installing packages. This might take a couple of minutes.
Installing react, react-dom, and react-scripts with cra-template...
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
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.
npm ERR! A complete log of this run can be found in:
npm ERR! /home/chrisl8/.npm/_logs/2022-06-30T21_30_58_285Z-debug-0.log
Aborting installation.
npm install --no-audit --save --save-exact --loglevel error react react-dom react-scripts cra-template has failed.
Deleting generated file... package.json
Deleting react-website/ from /home/chrisl8/Work/DemoApp
Done.
Seems like they are both unhappy about eslint-8.4.4
.
Maybe I just picked a bad day at NPM for installing stuff?
If you want to unblock yourself you can
git clone https://github.com/redwoodjs/redwood-tutorial
(taken from https://redwoodjs.com/docs/tutorial/intermission#using-the-example-repo-recommended)
Update: This looks to be resolved and now is installing properly.
@chrisl8 thanks for the report, this is a weird one. That's not even the latest version of ESLint either, but the consistency between create redwood app and create react app points to NPM having a bad as you said. And @brendandonahue, as you said, maybe it's resolved now—I just tried to reproduce this and it's installing cleanly. @chrisl8 have you tried again?
Closing this one as it seems resolved, but feel free to comment here again if it's not!
What's not working?
The installation command
as described at https://redwoodjs.com/docs/tutorial/chapter1/installation
is failing.
How do we reproduce the bug?
What's your environment? (If it applies)
Are you interested in working on this?