firebase-tools error: EACCES: permission denied
I am trying to deploy Firebase hosting of my web app.
At the command line, when I type
firebase deploy, I get the following error.
firebase deploy is just one example. The same error occurs for all
firebase commands. (e.g.,
firebase logout, etc.)
/usr/local/lib/node_modules/firebase-tools/node_modules/configstore/index.js:53 throw err; ^
Error: EACCES: permission denied, open '/Users/mowzer/.config/configstore/update-notifier-firebase-tools.json' You don't have access to this file.
at Error (native) at Object.fs.openSync (fs.js:549:18) at Object.fs.readFileSync (fs.js:397:15) at Object.create.all.get (/usr/local/lib/node_modules/firebase-tools/node_modules/configstore/index.js:34:26) at Object.Configstore (/usr/local/lib/node_modules/firebase-tools/node_modules/configstore/index.js:27:44) at new UpdateNotifier (/usr/local/lib/node_modules/firebase-tools/node_modules/update-notifier/index.js:34:17) at module.exports (/usr/local/lib/node_modules/firebase-tools/node_modules/update-notifier/index.js:123:23) at Object. (/usr/local/lib/node_modules/firebase-tools/bin/firebase:5:48) at Module._compile (module.js:409:26) at Object.Module._extensions..js (module.js:416:10)
Everything I have tried so far (including every CLI
firebase instruction) rejects me for lack of access.
What can I do? What should I try?
(I am on a Mac OSX Yosemite v10.10.5 and firebase-tools v3.0.3)
Edit: When I do
sudo firebase deploy, I get the following error.
Error: The entered credentials were incorrect.
I tried the following solution.
I tried to delete problem files then reinstall
cd cd .config/configstore # Delete problematic files rm firebase-tools.json override rw------- root/staff for firebase-tools.json? y rm update-notifier-firebase-tools.json override rw------- root/staff for update-notifier-firebase-tools.json? y # Reinstall firebase-tools cd sudo npm install -g firebase-tools
cd path/to/directory cd firebase deploy
Now this file generates the error:
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.
Issue installing firebase tool · Issue #372 · firebase/firebase-tools , I get an error while installing firebase tool and I can't figure out the ERR! configure error gyp ERR! stack Error: EACCES: permission denied, Teams. Q&A for Work. Stack Overflow for Teams is a private, secure spot for you and your coworkers to find and share information.
I fix it by adding
sudo at the beginning of the command line!
Can't run any firebase commands, permission denied · Issue #864 , Alright so I have firebase-tools globally installed with npm. I ran into this problem throw err; ^. Error: EACCES: permission denied, open Error: EACCES, permission denied to #yo angular command I come yeoman and angular begun to use that command but I threw this error, which I can do? #yo angular
Expanding more detail to the solution provided by @jacobawenger:
# 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 am having trouble with installing firebase tools · Issue #1558 , Error: EACCES: permission denied, access '/usr/local/lib/node_modules/firebase-tools/node_modules/grpc' npm ERR! [Error: EACCES: abeisgoat changed the title Local emulated functions do not work Emulator socket fails on Windows with EACCES May 13, 2019 abeisgoat self-assigned this May 13, 2019 abeisgoat added emulator-suite type: bug labels May 13, 2019
I had the same issue, and I fixed it by doing
chmod 755 on all the files in the
Error: An unexpected error has occurred. · Issue #760 · firebase , npm install -g firebase-tools; firebase experimental:functions:shell. Receive the error in title: i functions: Preparing to emulate functions. Error Join GitHub today. GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Try run the command as
if you are using ubuntu. For me, just use sudo, did not work. I'm using Ubuntu 18.x.x and I was trying install firebase through npm
EACCES: permission denied when attempting to launch shell · Issue , Hi I am not using firebase. Error: EACCES: permission denied #195 /@google-cloud/functions-emulator/src/cli/main.js:69:6) at getProjectId.then EACCES: permission denied when attempting to launch shell #193. Clone via HTTPS Clone with Git or checkout with SVN using the repository’s web address.
Error: EACCES: permission denied · Issue #195 · googlearchive , firebase-tools error: EACCES: permission denied. Question. I am trying to deploy Firebase hosting of my web app. At the command line, when I type firebase To minimize the chance of permissions errors, you can configure npm to use a different directory. In this example, you will create and use hidden directory in your home directory. Back up your computer. On the command line, in your home directory, create a directory for global installations:
firebase-tools error: EACCES: permission denied, I am typing npm install -g firebase-tools but terminal gives me this message: Error: EACCES: permission denied, access '/usr/local/lib/node_modules' npm Hi, I am not able to install firebase tools using npm. Logs are attached. Please help fix. npm-debug.txt
I get an installation error, when trying to install Firebase,