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"
}
}
@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
Most helpful comment
@ashishtechuz Have you tried this #8097