From 98ee6dacf8676def0168d074238c43fab9c8cf62 Mon Sep 17 00:00:00 2001 From: oopsbagel Date: Mon, 5 May 2025 22:12:13 -0700 Subject: [PATCH] doc(building bin/web): also run npm install --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 1669763..df798e6 100644 --- a/README.md +++ b/README.md @@ -120,7 +120,7 @@ The capture files are located at */data/rayhunter/qmdl* but you will need root a Building Rayhunter from source, either for development or because the install script doesn't work on your system, involves a number of external dependencies. Unless you need to do this, we recommend you use our [compiled builds](https://github.com/EFForg/rayhunter/releases). * Install [nodejs/npm](https://docs.npmjs.com/downloading-and-installing-node-js-and-npm), which is required to build Rayhunter's web UI - * Make sure to build the site with `cd bin/web && npm run build` before building Rayhunter. If you're working directly on the frontend, `npm run dev` will allow you to test a local frontend with hot-reloading (use `http://localhost:5173` instead of `http://localhost:8080`). + * Make sure to build the site with `cd bin/web && npm install && npm run build` before building Rayhunter. If you're working directly on the frontend, `npm run dev` will allow you to test a local frontend with hot-reloading (use `http://localhost:5173` instead of `http://localhost:8080`). * Install ADB on your computer using the instructions above, and make sure it's in your terminal's PATH * You can verify if ADB is in your PATH by running `which adb` in a terminal. If it prints the filepath to where ADB is installed, you're set! Otherwise, try following one of these guides: * [linux](https://askubuntu.com/questions/652936/adding-android-sdk-platform-tools-to-path-downloaded-from-umake) @@ -155,7 +155,7 @@ Now you can root your device and install Rayhunter by running `./tools/install-d * Root your device on Windows using the instructions here: -* Build the web UI using `cd bin/web && npm run build` +* Build the web UI using `cd bin/web && npm install && npm run build` * Push the scripts in `scripts/` to `/etc/init.d` on device and make a directory called `/data/rayhunter` using `adb shell` (and sshell for your root shell if you followed the steps above)