Unhandled rejection Error: EACCES: permission denied, open '/Users/username/.npm/_cacache/tmp/a449402d'

Solución:

  1. sudo chown -R $USER:$GROUP ~/.npm
  2. sudo chown -R $USER:$GROUP ~/.config

Fuente: https://stackoverflow.com/questions/50639690/on-npm-install-unhandled-rejection-error-eacces-permission-denied

 

npm ERR! code ELIFECYCLE

Solución:

  1. npm cache clean –force
  2. Borrar node_modules manualmente o utilizar: rm -rf node_modules (borrar package-lock.json)
  3. npm install

Fuente: https://stackoverflow.com/questions/42308879/npm-err-code-elifecycle