From 1b1b1642f9e64bcf7e4d347a9e689b999460ddb8 Mon Sep 17 00:00:00 2001 From: Caique Coelho Date: Thu, 14 Dec 2023 18:04:39 -0300 Subject: [PATCH 1/2] adding troubleshooting section on readme --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.md b/README.md index a27a4ae..5d34bee 100644 --- a/README.md +++ b/README.md @@ -253,3 +253,11 @@ The result of this work is the present plugin called **cypress-visual-regression | cypress-image-diff | 30.1% | :x: | :white_check_mark: | :white_check_mark:| :white_check_mark:| | | micoocypress | 8.8518% | :white_check_mark: | :x: | :x: | :white_check_mark:| Requires Docker | | cypress-visual-regression-diff | 14.7% |:white_check_mark: | ✅| ✅| :white_check_mark:| Requires a manual installation of "sharp" library on Linux | + +## Troubleshooting +1. Error when installing the plugin: `ERR! install response status 404 Not Found on https://github.com/Automattic/node-canvas/releases/download/v2.9.0/canvas-v2.9.0-node-v108-darwin-unknown-arm64.tar.gz ` + +This is a [known issue](https://github.com/Automattic/node-canvas/issues/2306) on the Canvas dependency. In this case you need to install and update some subdependencies from Canvas with: +``` +brew install pkg-config cairo pango libpng jpeg giflib librsvg pixman +``` \ No newline at end of file From fbdaf34d088363088a61d8ce11420ccbd595d7a9 Mon Sep 17 00:00:00 2001 From: Caique Coelho Date: Fri, 15 Dec 2023 18:27:59 -0300 Subject: [PATCH 2/2] windows alternative --- README.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/README.md b/README.md index 5d34bee..607f649 100644 --- a/README.md +++ b/README.md @@ -258,6 +258,20 @@ The result of this work is the present plugin called **cypress-visual-regression 1. Error when installing the plugin: `ERR! install response status 404 Not Found on https://github.com/Automattic/node-canvas/releases/download/v2.9.0/canvas-v2.9.0-node-v108-darwin-unknown-arm64.tar.gz ` This is a [known issue](https://github.com/Automattic/node-canvas/issues/2306) on the Canvas dependency. In this case you need to install and update some subdependencies from Canvas with: + +Mac Os ``` brew install pkg-config cairo pango libpng jpeg giflib librsvg pixman +``` + +Windows using MSYS2 +``` +pacman -S pkg-config +pacman -S mingw-w64-x86_64-cairo +pacman -S mingw-w64-x86_64-pango +pacman -S mingw-w64-x86_64-libpng +pacman -S mingw-w64-x86_64-libjpeg-turbo +pacman -S mingw-w64-x86_64-giflib +pacman -S mingw-w64-x86_64-librsvg +pacman -S mingw-w64-x86_64-pixman ``` \ No newline at end of file