
NPX Create React APP Not Working | Fix Create React App Error
NPX Create React APP Not Working | Fix Create React App Error
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: https://www.facebook.com/webstylepress
Twitter: https://twitter.com/webstylepress
GitHub: https://github.com/webstylepress
#WebStylePress #npx #npm #CreateReactApp #nvm #NodeJS #reactjs #js #javascript
Content
Source: https://www.youtube.com/watch?v=q6SXo4IezNs