create-react-app icon indicating copy to clipboard operation
create-react-app copied to clipboard

Unable to create React app

Open aldrin112602 opened this issue 3 years ago • 2 comments

Screenshot_2022-09-05-07-26-04-86 I hope someone can help me, I'm using termux app.. even install node modules ..same error that I get.. all command that I run Using npm .. always show this error .. I don't know what's going on. Guys help me please!

aldrin112602 avatar Sep 04 '22 23:09 aldrin112602

/sdcard/node-project $ create-react-app my-react-app

Creating a new React app in /storage/emulated/0/node-project/my-react-app.

Installing packages. This might take a couple of minutes. Installing react, react-dom, and react-scripts with cra-template...

npm ERR! code FETCH_ERROR npm ERR! errno FETCH_ERROR npm ERR! invalid json response body at https://registry.npmjs.org/cra-template reason: Invalid response body while trying to fetch https://registry.npmjs.org/cra-template: EACCES: permission denied, link '/data/data/com.termux/files/home/.npm/_cacache/tmp/d006634c' -> '/data/data/com.termux/files/home/.npm/_cacache/content-v2/sha512/9f/67/5ef5b4bfec006889a3012a37575b599fc0f8e8d6ac7208ee12c59afed60146521542c3dd4b132242fb79b9f9510f79cc29a6e855655054997dd48772a32b'

npm ERR! A complete log of this run can be found in: npm ERR! /data/data/com.termux/files/home/.npm/_logs/2022-09-04T23_21_29_059Z-debug-0.log

Aborting installation. npm install --no-audit --save --save-exact --loglevel error react react-dom react-scripts cra-template has failed.

Deleting generated file... package.json Deleting my-react-app/ from /storage/emulated/0/node-project Done.

aldrin112602 avatar Sep 04 '22 23:09 aldrin112602

What is the termux? Do you run this command on Android?

isqua avatar Sep 15 '22 20:09 isqua

Yes, I'm using termux sir for Android

On Fri, Sep 16, 2022, 4:15 AM isqua @.***> wrote:

What is the termux? Do you run this command on Android?

— Reply to this email directly, view it on GitHub https://github.com/facebook/create-react-app/issues/12706#issuecomment-1248567839, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASFBUWOEW6HYMJLHRTWZQADV6N7WDANCNFSM6AAAAAAQEQ2LVM . You are receiving this because you authored the thread.Message ID: @.***>

aldrin112602 avatar Sep 16 '22 19:09 aldrin112602

@aldrin112602 So looks like the problem is not related to create-react-app. I can assume you’ll find something if you search for “termux android npm permissions eaccess”, or probably ask on https://stackoverflow.com

isqua avatar Sep 16 '22 21:09 isqua

already fixed guys, thanks

aldrin112602 avatar Jan 31 '23 23:01 aldrin112602