firebase-tools error: EACCES: permission denied

后端 未结 8 1760
悲&欢浪女
悲&欢浪女 2021-01-14 08:37

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.

Note: f

8条回答
  •  生来不讨喜
    2021-01-14 09:06

    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)
    

提交回复
热议问题