Home > OS >  npx create-react-app dependencies not working
npx create-react-app dependencies not working

Time:10-21

When creating a new react app via npx create-react-app client, the application is created however the react-scripts command is not found and cannot run the start script. Is there anyway to fix this? [enter image description here

Question 2 Also when running application node <direct path to react-scripts start file> I cannot use the dotenv module as pollyfill is no longer supported for the fs and os modules? Any solutions?

I am using

  • npm version: 8.19.2
  • node version: v16.17.0 enter image description here

CodePudding user response:

this problem's have multiple problems , maybe you have to create app at desktop or at C disk (if Windows) , try this

  1. rm -rf node_modules
  2. rm -rf package-lock.json
  3. npm install
  4. change node version vie NVM (optional)

Second question check this dotenv-webpack

  • Related