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

前端 未结 12 1896
囚心锁ツ
囚心锁ツ 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:40

    I had the same problem, this how I solved it.

    When I try to run npm rm -g create-react-app, it shows an error.

    So I went to the node modules directory (for Mac /usr/local/lib/node_modules) and delete create-react-app directory and reinstall create-react-app using npx create-react-app my-app.

提交回复
热议问题