When I am using Git Bash on windows, and try to do npm commands, I am getting this error:
npm ERR! Cannot read properties of undefined (reading 'stdin')
Until 2 days ago it was not a problem, and when I am using cmd or powershell it works just fine.
Tried to clone the repos again, did not work. Tried to delete node modules and package-log.json, did not work. Tried to clear cache, did not work.
Edit: I lowered Node version and it worked for now, but still interesting why it happend.
In my case, it was due to the console type, specifically git bash
. Changing it to powershell
solved this issue for me.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With