Unable to install redux-firebase in my react project

Unable to install redux-firebase in my react project

i did:
npm i --save redux-firestore@latest

and got:

Unhandled rejection Error: EACCES: permission denied, open ‘/home/jaffar/.npm/_cacache/index-v5/1d/e7/e5460583144affb1a612b862ce3cfe463509414a2389831a49aa82788306’

npm ERR! cb() never called!

npm ERR! This is an error with npm itself. Please report this error at:
npm ERR! https://npm.community

npm ERR! A complete log of this run can be found in:
npm ERR! /home/jaffar/.npm/_logs/2019-03-07T20_06_49_898Z-debug.log

This is likely an ownership issue left behind by using sudo with global installs. The short answer is try:

sudo chown -R $(whoami) ~/.npm

The canonical bug is: Global installs (sudo npm i -g) fail on Mac after 6.5 upgrade. Works fine after 6.4.1 downgrade.

thanks. sudo did it.

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.