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

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

0.8 -> welcome to web style press npx
8.56 -> create react app and then project name
13.2 -> this command should create a new reactjs  project without installing create-react-app
20.4 -> but it is throwing an error
24.16 -> error is like npm one exec the falling package was  not found and will be installed create react app  
33.44 -> internal modules cjs loader i have not installed  node.js directly in my system i have installed  
42.24 -> nodes yes via nvm that is node version manager  it allows me to switch node.js version easily  
50.88 -> nvm nvm command verifies that it is installed
58 -> clear so i am unable to create new react  project i will install create react app globally  
66.56 -> npm dash g list right now these packages  are installed globally npm install dash g
82.72 -> create react app we installed create track tab  globally now npm dash g list we have create track  
93.28 -> tab installed now as a global dependency now i can  use npx command to create new react app like npx
105.84 -> create react app and then project name
112.48 -> now react project will be installed
117.28 -> as this folder was created
123.6 -> and the project was created
128 -> if you face such error like package was not found  like create react app was not found or such errors  
134.72 -> while creating new react project try installing  create tracked app globally and then run command  
141.52 -> with npx okay i hope it helped like share  subscribe and i will see you in the next video

Source: https://www.youtube.com/watch?v=q6SXo4IezNs