Create-react-app: public and src folder not created while installing react

Created on 10 Dec 2019  路  5Comments  路  Source: facebook/create-react-app

npx version:6.9.0
node version:10.16.3
npm :6.9.0

I installed project using
npx create-react-app app_name

but both src and public directories are not present in the code. package.json is not properly set.

package.json :

{
  "name": "demos",
  "version": "0.1.0",
  "private": true,
  "dependencies": {
    "react": "^16.12.0",
    "react-dom": "^16.12.0",
    "react-scripts": "3.3.0"
  }
}

bug report needs triage

Most helpful comment

@ashishtechuz Have you tried this #8097

All 5 comments

@zloid already looked into it. still same. :(

@ashishtechuz Have you tried this #8097

I tried #8097 and #8088 ,worked with yarn but not with npx.

So I tried this with npx and it's worked:
npx [email protected] your-project-name
or
npx create-react-app@latest your-project-name

node : 10.16.3
npx : 6.9.0
npm : 6.9.0

Anyone still facing this should try this and let me know if it still fails.

npx --ignore-existing create-react-app your-project-name
Was this page helpful?
0 / 5 - 0 ratings

Related issues

fson picture fson  路  3Comments

jnachtigall picture jnachtigall  路  3Comments

adrice727 picture adrice727  路  3Comments

fson picture fson  路  3Comments

onelson picture onelson  路  3Comments