Installing Node.js & npm

13. Installing Node.js & npm

Node.js is needed for the Firebase CLI (indexes, rules and Cloud Functions), for the Firestore import/export utility, and for the scheduled scripts the Admin Panel executes.

13.1. Install Node.js

Download the LTS installer from nodejs.org/en/download and
run it. npm is installed alongside Node. Verify:

node -v
npm -v

13.2. Find the Node binary path

The Admin Panel needs the absolute path to the Node executable so its scheduled commands can run. On Linux/macOS:

which node

On Windows:

where node

The command prints something like /usr/local/bin/node. Copy that value into the NODE_PATH variable of the Admin Panel’s .env file.

[user@server ~]$ which node
/usr/local/bin/node

Copy that path into the Admin Panel’s .env:

NODE_PATH='/usr/local/bin/node'

13.3. Install the Firebase CLI

npm install -g firebase-tools
firebase login

firebase login opens a browser window; sign in with the Google account that owns your Firebase project.

See Video: