You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We need canvas or canvas-prebuilt to download images when using jsdom.
canvas-prebuilt doesn't support node 8 yet and I'm having compiling issues with node 8 and windows:
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
Canvas.cc
CanvasGradient.cc
CanvasPattern.cc
CanvasRenderingContext2d.cc
c:\projects\sonar\node_modules\canvas\src\Canvas.h(19): fatal error C1083: Cannot open include file: 'cairo.h': No such file or directory (compiling source file ..\src\CanvasPatt
ern.cc) [C:\Projects\Sonar\node_modules\canvas\build\canvas.vcxproj]
c:\projects\sonar\node_modules\canvas\src\Canvas.h(19): fatal error C1083: Cannot open include file: 'cairo.h': No such file or directory (compiling source file ..\src\CanvasGrad
ient.cc) [C:\Projects\Sonar\node_modules\canvas\build\canvas.vcxproj]
c:\projects\sonar\node_modules\canvas\src\Canvas.h(19): fatal error C1083: Cannot open include file: 'cairo.h': No such file or directory (compiling source file ..\src\CanvasRend
eringContext2d.cc) [C:\Projects\Sonar\node_modules\canvas\build\canvas.vcxproj]
c:\projects\sonar\node_modules\canvas\src\Canvas.h(19): fatal error C1083: Cannot open include file: 'cairo.h': No such file or directory (compiling source file ..\src\Canvas.cc)
[C:\Projects\Sonar\node_modules\canvas\build\canvas.vcxproj]
The text was updated successfully, but these errors were encountered:
For JSDOM to download images we need canvas or canvas-prebuilt as a
peerDependency. canvas-prebuild doesn't support node 8.
Update .travis.yml script to install all dependencies to build canvas.
**Windows users**: [Install all dependencies using
cholatey](https://github.com/Automattic/node-canvas/wiki/Installation---Windows#install-with-chocolate)
if you don't have them already except the GTK one. Manually download
the file and unzip it in C:\GTK so it compiles.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Fix#241
We need
canvas
orcanvas-prebuilt
to download images when usingjsdom
.canvas-prebuilt
doesn't support node 8 yet and I'm having compiling issues with node 8 and windows:The text was updated successfully, but these errors were encountered: