0
0

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 5 years have passed since last update.

create-react-appでpackage.jsonが作成されない

0
Posted at

package.jsonが作成されない...

Reacteでアプリ作成しようと色なサイトみながらやっているのですが、環境構築初っ端から起動しない。

#バージョン
yarn 1.21.1
node 12.14.1
npm 6.13.4
create-react-app 3.3.0
※ここが3.3.0の方は注意

原因

結論から言うとどうやらcreate-react-app 3.3.0このバージョンに限って、**.gitignore**ファイルが存在する状態でやるとバグか何かで動作しないらしい。

解決

Node指定→githubでリポジトリ作成→git clone ~~ → create-react-app ../アプリ名
だとNode指定のタイミングで**.gitignore**こいつができてしまうのでこの手順でやるならNode指定はせずに、
githubでリポジトリ作成→git clone ~~ → create-react-app ../アプリ名
の手順でやるとpackage.jsonが目だたく作成できた!!

まとめ

無知のことを一からやるときは苦労がつきものだが、諦めなければ必ず解決までたどり着ける!!
と再度認識できた!!!!笑

P.S.
まとめはReact関係ありません。笑

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?