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.
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
check if this file 'C:\Users\your user name\.yarnrc' is not hidden.
it helped me.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With