Globally installed node module yields EACESS: permission denied

nodejs

#1

Hi,

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?


#2

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


#3

Doh! Thank you.


#4

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