From dcd9a1c491670a2726f1694bc0caf67059b4e40c Mon Sep 17 00:00:00 2001 From: Amy Shackles Date: Mon, 3 Oct 2022 21:35:17 -0500 Subject: [PATCH] Add note to clear cache MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It's not uncommon for the instructions to uninstall create-react-app globally not being sufficient to clear the error. It would be nice if the official docs had the solution in them so that users didn't have to hunt through StackOverflow/Github issues. 😅 --- docusaurus/docs/getting-started.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docusaurus/docs/getting-started.md b/docusaurus/docs/getting-started.md index ef7da3006f0..30e738a7b99 100644 --- a/docusaurus/docs/getting-started.md +++ b/docusaurus/docs/getting-started.md @@ -14,7 +14,7 @@ cd my-app npm start ``` -> If you've previously installed `create-react-app` globally via `npm install -g create-react-app`, we recommend you uninstall the package using `npm uninstall -g create-react-app` or `yarn global remove create-react-app` to ensure that `npx` always uses the latest version. +> If you've previously installed `create-react-app` globally via `npm install -g create-react-app`, we recommend you uninstall the package using `npm uninstall -g create-react-app` or `yarn global remove create-react-app` to ensure that `npx` always uses the latest version. If you still get this error after uninstalling the package globally, try running `npx clear-npx-cache` to clear your cache. _([npx](https://medium.com/@maybekatz/introducing-npx-an-npm-package-runner-55f7d4bd282b) comes with npm 5.2+ and higher, see [instructions for older npm versions](https://gist.github.com/gaearon/4064d3c23a77c74a3614c498a8bb1c5f))_