Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable to create react, Abort Installation yarnpkg add --exact react react-dom react-scripts cra-template has failed

I'm having trouble to create npx create-react-app .

➤ YN0009: │ core-js@npm:2.6.11 couldn't be built successfully (exit code 1, logs can be found here: /C:/Users/acer/AppData/Local/Temp/logfile-10088VPjTiMAhqTi1.log)

➤ YN0009: │ fsevents@patch:fsevents@npm%3A1.2.12#builtin<compat/fsevents>::version=1.2.12&hash=77dfe6 couldn't be built successfully (exit code 1, logs can be found here: /C:/Users/acer/AppData/Local/Temp/logfile-10088GGXEekcVAsh7.log)

➤ YN0009: │ core-js-pure@npm:3.6.4 couldn't be built successfully (exit code 1, logs can be found here: /C:/Users/acer/AppData/Local/Temp/logfile-10088HJnNDOaZdPmT.log)

➤ YN0009: │ core-js@npm:3.6.4 couldn't be built successfully (exit code 1, logs can be found here: /C:/Users/acer/AppData/Local/Temp/logfile-10088nbZGburV304n.log)

➤ YN0000: └ Completed in 17.86s

➤ YN0000: Failed with errors in 49.26s

Aborting installation. yarnpkg add --exact react react-dom react-scripts cra-template --cwd C:\Users\acer\Desktop\coding tutorial\raraa_react has failed.

Deleting generated file... package.json Deleting generated file... yarn.lock Done.

i also used the yarn cache clean and npm cache clean --force. But nothing is work. Pls help me.

like image 308
rafalias Avatar asked Oct 13 '20 07:10

rafalias


2 Answers

This works for me:

npm install -g npm@latest
npm install node
npm install -g yarn
yarn cache clean
npx create-react-app my-app
like image 90
Mebatsion Sahle Avatar answered Nov 11 '22 06:11

Mebatsion Sahle


check if this file 'C:\Users\your user name\.yarnrc' is not hidden.

it helped me.

how to uncheck a file as hidden on windows

like image 36
David Peer Avatar answered Nov 11 '22 07:11

David Peer