Create-react-app: npx create-react-app gives error

Created on 29 Feb 2020  路  5Comments  路  Source: facebook/create-react-app

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?

Most helpful comment

Add .env file with "SKIP_PREFLIGHT_CHECK=true"

All 5 comments

This issue seems to be on NPX, which is fix in previous git-repo and not yet in new repo

Existing Issue

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.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jnachtigall picture jnachtigall  路  3Comments

alleroux picture alleroux  路  3Comments

rdamian3 picture rdamian3  路  3Comments

fson picture fson  路  3Comments

AlexeyRyashencev picture AlexeyRyashencev  路  3Comments