'Couldn't install reactjs

why can't I install react, managed to create a node module file but the file will be automatically deleted. i used command npx create-react-app my-app here is the screenshot.

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

Deleting generated file... node_modules
Deleting generated file... package.json
Deleting sanbercode/ from C:\Users\ALI ZAIN\Documents\bds-sanbercode-reactjs-batch-32\Tugas-Harian-Part-2
Done.


Solution 1:[1]

try this

 npm cache clean --force

then create react app

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Nagween Jaffer