1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

create-react-app できない!

Posted at

事象

create-react-app しようとしたところ以下のように表示されます。
一見エラーっぽくないですがReactアプリは作られません。

$ npx create-react-app appsample_YYYYMMDD --template typescript
Need to install the following packages:
  create-react-app
Ok to proceed? (y) y

You are running `create-react-app` 4.0.3, which is behind the latest release (5.0.0).

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

The latest instructions for creating a new app can be found here:
https://create-react-app.dev/docs/getting-started/

以下のコマンドを実行するように書いてありますが、これらを実行してもうまくいきません。

- npm uninstall -g create-react-app
- yarn global remove create-react-app

解決策

この方の記事が非常に参考になりました。

キャッシュが悪さをしているようです。

$ npx clear-npx-cache
1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?