NPX Create React APP Not Working | Fix Create React App Error

Published: 24 February 2022
on channel: WebStylePress
58,601
466

To create a new React App, we use npx command with create-react-app and then project name. It should create a new react js project without installing create-react-app in PC. But sometimes it throws error / exception. I can't install react using npx create-react-app and npx create react app not working for me.

npm WARN exec The following package was not found and will be installed: create-react-app
node:internal/modules/cjs/loader
throw error

So create-react-app is not working for me using npx command.

I have not installed node js directly. I have installed nodejs via NVM. NVM is Node Version Manager. It allows me to switch Node JS version easily.

nvm command in terminal verifies that it's installed. I am unable to create new react js project by using npx create react app. I will install create-react-app globally.

npm -g list (shows list of globally installed packages)
npm install -g create-react-app (it will install create-react-app globally)
I will use

npx create-react-app [project-name]

to create react app now. npm create-react-app won't work in my case. Now new react js project will be created.

Thank You!
👍 LIKE VIDEO
👊 SUBSCRIBE
🔔 PRESS BELL ICON
✍️ COMMENT

Channel:    / webstylepress  
Website: https://www.webstylepress.com
FaceBook:   / webstylepress  
Twitter:   / webstylepress  
GitHub: https://github.com/webstylepress
#WebStylePress #npx #npm #CreateReactApp #nvm #NodeJS #reactjs #js #javascript


On this page of the site you can watch the video online NPX Create React APP Not Working | Fix Create React App Error with a duration of hours minute second in good quality, which was uploaded by the user WebStylePress 24 February 2022, share the link with friends and acquaintances, this video has already been watched 58,601 times on youtube and it was liked by 466 viewers. Enjoy your viewing!