I receive this error while trying to create-react-app using npx
D:\>npx create-react-app freighthub-challenge --template typescript
npm ERR! code ENOLOCAL
npm ERR! Could not install from "Dinesh\AppData\Roaming\npm-cache\_npx\18176" as it does not contain a package.json file.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\SOdium Dinesh\AppData\Roaming\npm-cache\_logs\2020-02-29T05_06_54_206Z-debug.log
Install for [ 'create-react-app@latest' ] failed with code 1
Is there any workaround or solution for this? There is a space in username directory
C:\Users\ SOdium Dinesh \AppData\
Is this a matter of concern?
This issue seems to be on NPX, which is fix in previous git-repo and not yet in new repo
There are possible work-arounds for this
Add .env file with "SKIP_PREFLIGHT_CHECK=true"
thanks @Aakashdeveloper
@Dannybrown2710 Can we close this issue now
@Aakashdeveloper These are workarounds, the issue still persists.
It can be linked to existing issue and then closed.
Most helpful comment
Add .env file with "SKIP_PREFLIGHT_CHECK=true"