Skip to content

Commit

Permalink
Merge pull request #19 from CaiqueCoelho/troubleshooting
Browse files Browse the repository at this point in the history
Adding troubleshooting section on readme
  • Loading branch information
Andremoniy authored Dec 19, 2023
2 parents 531313c + fbdaf34 commit 5c05c2b
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -253,3 +253,25 @@ 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:

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
```

0 comments on commit 5c05c2b

Please sign in to comment.