エラーメッセージ
npx create-react-app を使いたい時に以下のエラーメッセージが表示さば、この記事の手順に従ってください。
We no longer support global installation of Create React App.
Please remove any global installs with one of the following commands:
- npm uninstall -g create-react-app
- yarn global remove create-react-app
アンインストール
npm uninstall -g create-react-app
を実行してましょう。
次はnpxキャッシュをクリアしましょう:npx clear-npx-cache
.
問題が解決しました
これでnpx create-react-app <my-app>
は実行出来ます。