Open dan-ville opened 3 years ago
I've been encountering this as well today! Works on 14.15.4 but not 15.8.
While not super sensible, these are the two different fixes we quickly discovered in the middle of teaching a react lesson in an SE bootcamp today (if npm uninstall -g create-react-app
doesn't work):
npm -g create-react-app
and then you can rn npx create-react-app sitename
npm uninstall -g create-react-app && npm i -g npm@latest && sudo npm cache clean -f
Super helpful. Thanks @TaylorDarneille!
@TaylorDarneille Amazing, thanks!
While not super sensible, these are the two different fixes we quickly discovered in the middle of teaching a react lesson in an SE bootcamp today (if
npm uninstall -g create-react-app
doesn't work):
- Literally do the opposite of what the error message says: run
npm -g create-react-app
and then you can rnnpx create-react-app sitename
- In a slightly less confusing fix, this also seems to work:
npm uninstall -g create-react-app && npm i -g npm@latest && sudo npm cache clean -f
Confirming that option 1 oddly worked for me, too!
I still don't want to install create-react-app
with yarn or with npm. I encounter the same error with the wonderful npx
.
Steps to reproduce
cd /tmp
npx create-react-app cra
(same error as mentioned above)
Just had this happen to me again with 4.0.3 update, and this time cleaning npm cache did not fix it. I needed to run npm install -g create-react-app
as noted by @TaylorDarneille to fix it this time.
I was having this problem and solved it by deleting my root user's node_modules. This allowed me to do a fresh install with create-react-app, might be worth a try
Hi, I get this error whenever I run the command
$ npx create-react-app new-app
in my terminal, and I follow the instructions to uninstall vianpm uninstall -g create-react-app
and then try to make a new react app but it simply keeps giving me the same error.Is this happening for anyone else??