firebase-tools error: EACCES: permission denied

给你一囗甜甜゛ 提交于 2019-12-01 12:25:03

This looks like an issue with the permissions of modules you have npm installed. This is something lots of developers run into, and npm actually has some documentation on how to resolve it. Once you go through that, try again (you may need to re-install firebase-tools) and things should work.

Expanding more detail to the solution provided by @jacobawenger:

The most robust solution is to install Homebrew and let Homebrew manage the npm package installation for you.

Terminal.sh
# EACCESS error reference: https://docs.npmjs.com/getting-started/fixing-npm-permissions
# Install Homebrew # Reference: brew.sh # Ensures NPM is installed properly to avoid EACCESS errors
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
# Install npm # Reference: brew.sh
brew install node
# Install firebase-tools
npm install -g firebase-tools # Non-recurring task # Also updates to newest version (see notice)

I had the same issue, and I fixed it by doing chmod 755 on all the files in the configstore directory

Tony Bui

I fix it by adding sudo at the beginning of the command line!

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!