I just came back to work on a React project after working in the Rails environment and found that I cannot run any NPM commands in my Mac terminal. I\'ve tried all the remedies
I'm sorry, but in my case I get the same error, because, my index.js is inside de src folder, make sure that you are in the seme directory of your index.js to run