public, src,and scripts folder not created while using create-react-app

前端 未结 12 1860
囚心锁ツ
囚心锁ツ 2020-12-14 07:48

I am trying to create a new project using create-react-app using the command given on the docs i.e npx create-react-app my-app but it doesn\'t cont

12条回答
  •  离开以前
    2020-12-14 08:46

    Follow the following steps and that should solve your problem.

    1. sudo npm rm -g create-react-app (Do not skip sudo if you are a macOS user).

    2. npx create-react-app my-app (npm 5.2+ and higher) or npm init react-app my-app or yarn create react-app my-app (if you use yarn)

提交回复
热议问题