Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error while installing create-react-app globally using npm

Tags:

npm

reactjs

I am unable to install react js using NPM. I am getting following error. Your environment has been set up for using Node.js 12.3.1 (ia32) and npm.

C:\Users\User>npm install create-react-app -g

npm ERR! code UNABLE_TO_VERIFY_LEAF_SIGNATURE

npm ERR! errno UNABLE_TO_VERIFY_LEAF_SIGNATURE

npm ERR! request to https://registry.npmjs.org/create-react-app failed, reason:

unable to verify the first certificate

npm ERR! A complete log of this run can be found in:

npm ERR! C:\Users\User\AppData\Roaming\npm-cache_logs\2019-12-14T05_54_58_7

16Z-debug.log

I am form India and I am not using any corporate firewall or VPN.


1 Answers

hey can you try using npx create-react-app ${your project name}

like image 189
pramod singh Avatar answered Jun 28 '26 06:06

pramod singh



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!