Unable to create React app
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!
/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.
What is the termux? Do you run this command on Android?
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 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
already fixed guys, thanks