Can't run any firebase commands, permission denied
See original GitHub issueAlright so I have firebase-tools globally installed with npm. I ran into this problem before so I completely reinstalled node and npm to the latest versions and did the same with firebase.
Other packages work fine but firebase won’t even let me login.
`Kevin$ firebase login /Users/Kevin/.npm-global/lib/node_modules/firebase-tools/node_modules/configstore/index.js:69
throw err; ^
Error: EACCES: permission denied, open ‘/Users/Kevin/.config/configstore/update-notifier-firebase-tools.json.536079392’ You don’t have access to this file.`
I read that you have to change where your npm stores it’s global library. Well you can see I did that with .npm-global. And I set the prefix there too.
Is there something wrong with my $PATH? That should be fine too, right? This problem has been driving me crazy all day.
`echo $PATH
/usr/local/share/npm/bin:/usr/local/bin:/usr/local/sbin:~/bin:/Users/Kevin/.npm-global/bin:/Users/Kevin/.sdkman/candidates/gradle/current/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/MacGPG2/bin$`
Issue Analytics
- State:
- Created 5 years ago
- Comments:8 (2 by maintainers)
I don’t believe so, I’ve been extremely careful not to use sudo again.
Here’s what fixed me. Hope this helps someone if they run into the same problem.
sudo chown -R $USER ~/.config/configstore
Closing.
I solve with:
chmod +x ~/.nvm/versions/node/v16.15.1/bin/firebase