Globally installed node module yields EACESS: permission denied




I’m trying to add deployment to Firebase and needs ‘firebase-tools’ for this purpose.

However, when I try to install it globally:

npm install -g firebase-tools

It fails:

Error: EACCES: permission denied, access '/usr/local/lib/node_modules'

What is the recommended workaround? And shouldn’t this be possible?


You need to use sudo can you try sudo npm install -g firebase-tools


Doh! Thank you.


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