From 844eee0fa4c0a5187a046f6b8c2c3fc3ed4ab4b6 Mon Sep 17 00:00:00 2001 From: Andrew Bastin Date: Mon, 22 Apr 2024 21:12:27 +0530 Subject: [PATCH] chore: update @hoppscotch/cli README --- packages/hoppscotch-cli/README.md | 31 +++++++++++++++++++++++++++---- 1 file changed, 27 insertions(+), 4 deletions(-) diff --git a/packages/hoppscotch-cli/README.md b/packages/hoppscotch-cli/README.md index 64fce6737..5eac16511 100644 --- a/packages/hoppscotch-cli/README.md +++ b/packages/hoppscotch-cli/README.md @@ -52,11 +52,34 @@ hopp [options or commands] arguments Taking the above example, `pw.env.get("ENV1")` will return `"value1"` ## Install +- Before you install Hoppscotch CLI you need to make sure you have the dependencies it requires to run. + - **Windows & macOS**: You will need `node-gyp` installed. Find instructions here: https://github.com/nodejs/node-gyp + - **Debian/Ubuntu derivatives**: + ```sh + sudo apt-get install python g++ build-essential + ``` + - **Alpine Linux**: + ```sh + sudo apk add python3 make g++ + ``` + - **Amazon Linux (AMI)** + ```sh + sudo yum install gcc72 gcc72-c++ + ``` + - **Arch Linux** + ```sh + sudo pacman -S make gcc python + ``` + - **RHEL/Fedora derivatives**: + ```sh + sudo dnf install python3 make gcc gcc-c++ zlib-devel brotli-devel openssl-devel libuv-devel + ``` -Install [@hoppscotch/cli](https://www.npmjs.com/package/@hoppscotch/cli) from npm by running: -``` -npm i -g @hoppscotch/cli -``` + +- Once the dependencies are installed, install [@hoppscotch/cli](https://www.npmjs.com/package/@hoppscotch/cli) from npm by running: + ``` + npm i -g @hoppscotch/cli + ``` ## **Developing:**