skip to Main Content

It is giving me this error
saksh@DELL MINGW64 ~/Music/Desktop/check/Myapp
$ npm start

[email protected] start
react-scripts start

npm ERR! Cannot read properties of undefined (reading ‘stdin’)

npm ERR! A complete log of this run can be found in: enter image description here
I have tried to reinstall node js and node modules but nothing is working out.

2

Answers


  1. You can try below steps –

    1. Clear NPM cache – $ npm cache clear --force
    2. Delete node_modules.
    3. Delete package-lock.json
    4. Make sure you are using one of these Node versions compatible with react18 – "node": "16.x || 18.x || 19.x || 20.x"
    5. Reinstall NPM packages – $ npm install
    6. Now try to run your app again, Hopefully it will work.

    enter image description here

    Login or Signup to reply.
  2. Update Npm via
    npm install -g npm@latest
    Delete Node Modules
    rm -rf ./node_modules
    After that clean cache
    npm cache clean –force
    And then Perform npm Install again

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search