question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

npx create-react-app gives error

See original GitHub issue

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?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5

github_iconTop GitHub Comments

3reactions
Aakashdevelopercommented, Feb 29, 2020

Add .env file with “SKIP_PREFLIGHT_CHECK=true”

1reaction
perrogomazecommented, Feb 29, 2020
Read more comments on GitHub >

github_iconTop Results From Across the Web

I can't install react using npx create-react-app? - Stack Overflow
14. try npm cache clean --force then run npm install -g create-react-app@latest · it was the right command, thanks a lot. · your...
Read more >
npx create-react-app is not working · Issue #10132 - GitHub
I am able to solve the problem by first trying to uninstall the npm globally, update the npm, clear the cache then using...
Read more >
npx create-react-app not working? Here's the solution.
The current solution is simple — run create-react-app and target the latest version. Run creact-react-app using the latest version. npx create- ...
Read more >
npx create-react-app error - DEV Community ‍ ‍
npx create-react-app error · Solution 1. try to uninstall and reinstall it first. · Solution 2. If you run this in an older...
Read more >
Create a New React App
npx create -react-app my-app cd my-app npm start ... framework that doesn't require any configuration, but offers more flexibility than Next.js.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found