Closed defido closed 1 year ago
Do the following inline. One after the other.
arch -arm64 brew install pkg-config cairo pango libpng jpeg giflib librsvg <-- Don't do this within VSCODE
arch -arm64 brew install pkg-config cairo pango libpng jpeg giflib librsvg
npm install --save-dev canvas
npm install or yarn install
npm install
yarn install
This is the fix for M1, I saw the other fix it didn't work.
First install the dependencies, then install canvas.
https://github.com/Automattic/node-canvas/issues/1733#issuecomment-808916786 <--- Found here
Do the following inline. One after the other.
arch -arm64 brew install pkg-config cairo pango libpng jpeg giflib librsvg
<-- Don't do this within VSCODEnpm install --save-dev canvas
npm install
oryarn install
This is the fix for M1, I saw the other fix it didn't work.
First install the dependencies, then install canvas.
https://github.com/Automattic/node-canvas/issues/1733#issuecomment-808916786 <--- Found here