From 7cc5dee642600c04f95ce1e69f4c0a93d5c1e247 Mon Sep 17 00:00:00 2001 From: Jose E Date: Sun, 21 Aug 2022 13:14:37 -0600 Subject: [PATCH 1/2] Update README.md For NPM 16 & later, the original 'npm install' with the '-g' has been deprecated and causes a warning flag to show up. Nodejs v14 and older does not show a flag. --- README.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index a62f2479bcd..732a2778844 100644 --- a/README.md +++ b/README.md @@ -18,8 +18,14 @@ You can install the Firebase CLI using npm (the Node Package Manager). Note that To download and install the Firebase CLI run the following command: +Nodejs v16 & later ```bash -npm install -g firebase-tools +npm install --location=global firebase-tools +``` + +Nodejs v14 & Older +```bash +npm install -g firebase-tools ``` This will provide you with the globally accessible `firebase` command. From 10fbc8336de6294827919cdcbe32171b014f3380 Mon Sep 17 00:00:00 2001 From: Jose E Date: Sun, 21 Aug 2022 13:19:46 -0600 Subject: [PATCH 2/2] Update README.md minor update --- README.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 732a2778844..1efc22d17d5 100644 --- a/README.md +++ b/README.md @@ -18,14 +18,14 @@ You can install the Firebase CLI using npm (the Node Package Manager). Note that To download and install the Firebase CLI run the following command: -Nodejs v16 & later ```bash +# Nodejs v16 & later npm install --location=global firebase-tools -``` -Nodejs v14 & Older -```bash -npm install -g firebase-tools +OR + +# Nodejs v14 & older +npm install -g firebase-tools ``` This will provide you with the globally accessible `firebase` command.