From 6fdc79d5694b5617b5a54b02c9e4bba11e47a4e1 Mon Sep 17 00:00:00 2001 From: Lovell Fuller Date: Sun, 12 Jan 2020 10:50:14 +0000 Subject: [PATCH] Docs: ARM64 has prebuilt libvips, not sharp --- .travis.yml | 2 +- docs/install.md | 16 +++++++++++++++- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 623913dde..7965bee65 100644 --- a/.travis.yml +++ b/.travis.yml @@ -51,7 +51,7 @@ matrix: dist: bionic language: minimal before_install: - - sudo docker run -dit --name sharp --env CI --env PREBUILD_TOKEN --volume "${PWD}:/mnt/sharp" --workdir /mnt/sharp arm64v8/debian:bullseye + - sudo docker run -dit --name sharp --env CI --volume "${PWD}:/mnt/sharp" --workdir /mnt/sharp arm64v8/debian:bullseye - sudo docker exec sharp apt-get update - sudo docker exec sharp apt-get install -y build-essential git python2 nodejs npm install: sudo docker exec sharp sh -c "npm install --unsafe-perm" diff --git a/docs/install.md b/docs/install.md index 7880aaf0c..26e738996 100644 --- a/docs/install.md +++ b/docs/install.md @@ -19,7 +19,6 @@ Node.js versions 10, 12 and 13 on the most common platforms: * macOS x64 (>= 10.13) * Linux x64 (glibc >= 2.17, musl >= 1.1.24) -* Linux ARM64 (glibc >= 2.29) * Windows x64 with 64-bit `node.exe` A ~10MB tarball containing libvips and its most commonly used dependencies @@ -32,6 +31,7 @@ The following platforms have prebuilt libvips but not sharp: * Linux ARMv6 * Linux ARMv7 +* Linux ARM64 (glibc >= 2.29) The following platforms require compilation of both libvips and sharp from source: @@ -149,3 +149,17 @@ docker run -v "$PWD":/var/task lambci/lambda:build-nodejs10.x npm install sharp To get the best performance select the largest memory available. A 1536 MB function provides ~12x more CPU time than a 128 MB function. + +## Electron + +Electron provides versions of the V8 JavaScript engine +that are incompatible with Node.js. +To ensure the correct binaries are used, run the following: + +```sh +npm install +npx electron-rebuild +``` + +Further help can be found at +[https://electronjs.org/docs/tutorial/using-native-node-modules](https://electronjs.org/docs/tutorial/using-native-node-modules)