Fabric.js: Error in Windows npm install... C1083: Cannot open include file: 'cairo.h': No such file or

Created on 6 Jan 2017  路  1Comment  路  Source: fabricjs/fabric.js

When installing in Windows 10 x86 got the follwing error:

c:\msweb\studiotouch\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\Image.cc) [C:\msweb\studioTouch\node_modules\canvas\build\canvas.vcxproj]
c:\msweb\studiotouch\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\CanvasPattern.cc) [C:\msweb\studioTouch\node_modules\canvas\build\canvas.vcxproj]
c:\msweb\studiotouch\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:\msweb\studioTouch\node_modules\canvas\build\canvas.vcxproj]
c:\msweb\studiotouch\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\CanvasGradient.cc) [C:\msweb\studioTouch\node_modules\canvas\build\canvas.vcxproj]
c:\msweb\studiotouch\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\CanvasRenderingContext2d.cc) [C:\msweb\studioTouch\node_modules\canvas\build\canvas.vcxproj ]
c:\msweb\studiotouch\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\ImageData.cc) [C:\msweb\studioTouch\node_modules\canvas\build\canvas.vcxproj]
c:\msweb\studiotouch\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\init.cc) [C:\msweb\studioTouch\node_modules\canvas\build\canvas.vcxproj]
gyp ERR! build error
gyp ERR! stack Error: `C:\Program Files (x86)\MSBuild\14.0\bin\msbuild.exe` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onExit (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\build.js:276:23)
gyp ERR! stack     at emitTwo (events.js:106:13)
gyp ERR! stack     at ChildProcess.emit (events.js:191:7)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
gyp ERR! System Windows_NT 10.0.14393
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd C:\msweb\studioTouch\node_modules\canvas
gyp ERR! node -v v6.5.0
gyp ERR! node-gyp -v v3.3.1
gyp ERR! not ok
npm WARN install:[email protected] [email protected] install: `node-gyp rebuild`
npm WARN install:[email protected] Exit status 1

regards

Sean.

Most helpful comment

>All comments

Was this page helpful?
0 / 5 - 0 ratings

Related issues

amancqlsys picture amancqlsys  路  5Comments

zhangzhzh picture zhangzhzh  路  4Comments

keanass picture keanass  路  5Comments

f987002856 picture f987002856  路  3Comments

medialwerk picture medialwerk  路  5Comments