From ad47bfacd4a4033572fd98e81ec16b51379f8325 Mon Sep 17 00:00:00 2001 From: Jesper Hodge <19345795+jesperhodge@users.noreply.github.com> Date: Tue, 3 Jan 2023 22:32:54 +0100 Subject: [PATCH] docs: add fix for m1 macs to readme (#421) --- README.rst | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.rst b/README.rst index 87efa9799..0b2fcbc70 100644 --- a/README.rst +++ b/README.rst @@ -173,6 +173,14 @@ If your devstack includes the default Demo course, you can visit the following U - `Proctored Exam Settings `_ - `Pages and Resources `_ (work in progress) +Troubleshooting +======================== + +* ``npm ERR! gyp ERR! build error`` while running npm install on Macs with M1 processors: Probably due to a compatibility issue of node-canvas with M1. + + Run ``brew install pkg-config pixman cairo pango libpng jpeg giflib librsvg`` before ``npm install`` to get the correct versions of the dependencies. + If there is still an error, look for "no package [...] found" in the error message and install missing package via brew. + (https://github.com/Automattic/node-canvas/issues/1733) ********* Deploying