LoginSignup
0
0

More than 3 years have passed since last update.

久しぶりに create-react-app を使ったら動かなかった話

Posted at

事象

最近はいつも React Native を書いてるので、たまには React でも触ろうとして、公式に従いnpx create-react-app コマンドを実行したら、

node_modules/
package.json
yarn.lock

しか存在しないプロジェクトが生成されました。
しかも、 package.json は、

{
  "name": "PROJECT_NAME",
  "version": "0.1.0",
  "private": true,
  "dependencies": {
    "react": "^16.13.1",
    "react-dom": "^16.13.1",
    "react-scripts": "3.4.1",
  },
}

というシンプル極まりないもの。
グローバルインストールした create-react-app を削除しても直りません。

解決策

GitHub の issue にあるように、再度グローバルインストールをして、 npx create-react-app を実行すると直りました。

久しぶりに触ると色々とトラブルに直面しますね。不幸だ(ぇ

0
0
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
0
0