Home > Software design >  Error in create-react-app - Missing dependencies in package.json
Error in create-react-app - Missing dependencies in package.json

Time:10-14

I'm using npx create-react-app my-app in CMD (Windows 11) and always get the error "Missing dependencies in package.json". When I try npm start I got "npm ERR! Missing script: "start"".

Tried creating in different folders, uninstalling NodeJS and installing it again with the Node installer and with NVM. Tried installing Yarn. Also tried --use-npm.

CodePudding user response:

Finally got it working. Searching through my user folder, I found this file ".npmrc", in C:\Users\User, the only line inside the file was "location=global". I deleted the file and now create-react-app works!

  • Related