I can\'t use npm install using the command prompt in NodeJS. I\'m getting these errors when running npm install:
npm install
module.js:339
I'm facing the same issue here.
If this occurs right after you run brew install yarn try running yarn global add npm and voilà - fixed!
brew install yarn
yarn global add npm