From 4a350362a4819e8acf2bd85149c42703b0af0b37 Mon Sep 17 00:00:00 2001 From: Christophe Besson Date: Sat, 22 Aug 2026 11:09:22 +0200 Subject: docs: add npm 11 Electron setup steps to meshbay-client README npm >= 11 blocks install scripts by default. Document the approve-scripts + manual install + chrome-sandbox SUID steps. Co-Authored-By: Claude Opus 4.6 --- packages/meshbay-client/README.md | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'packages/meshbay-client/README.md') diff --git a/packages/meshbay-client/README.md b/packages/meshbay-client/README.md index 46be72b..2c2fb27 100644 --- a/packages/meshbay-client/README.md +++ b/packages/meshbay-client/README.md @@ -18,6 +18,15 @@ at all: the download script `require()`s an ESM module, which Node gained only i export PATH=/opt/nodejs/bin:$PATH npm ci # not `npm install` — the lockfile is the build input + + # npm ≥ 11 blocks install scripts by default; Electron needs them + npm approve-scripts electron + node node_modules/electron/install.js + + # Chromium's namespace sandbox requires SUID on chrome-sandbox + sudo chown root:root node_modules/electron/dist/chrome-sandbox + sudo chmod 4755 node_modules/electron/dist/chrome-sandbox + npm run sync-ui # copy the interface from the hub package npm start -- cgit v1.2.3