{"action":"created","issue":{"url":"https://api.github.com/repos/kangax/fabric.js/issues/2755","repository_url":"https://api.github.com/repos/kangax/fabric.js","labels_url":"https://api.github.com/repos/kangax/fabric.js/issues/2755/labels{/name}","comments_url":"https://api.github.com/repos/kangax/fabric.js/issues/2755/comments","events_url":"https://api.github.com/repos/kangax/fabric.js/issues/2755/events","html_url":"https://github.com/kangax/fabric.js/issues/2755","id":129069094,"number":2755,"title":"Unable to install fabric js on Node 4.2.4 Npm 3.5.3 Node-gyp 3.2.1","user":{"login":"khawerrind","id":1758838,"avatar_url":"https://avatars.githubusercontent.com/u/1758838?v=3","gravatar_id":"","url":"https://api.github.com/users/khawerrind","html_url":"https://github.com/khawerrind","followers_url":"https://api.github.com/users/khawerrind/followers","following_url":"https://api.github.com/users/khawerrind/following{/other_user}","gists_url":"https://api.github.com/users/khawerrind/gists{/gist_id}","starred_url":"https://api.github.com/users/khawerrind/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/khawerrind/subscriptions","organizations_url":"https://api.github.com/users/khawerrind/orgs","repos_url":"https://api.github.com/users/khawerrind/repos","events_url":"https://api.github.com/users/khawerrind/events{/privacy}","received_events_url":"https://api.github.com/users/khawerrind/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-01-27T08:30:23Z","updated_at":"2016-02-22T14:32:31Z","closed_at":"2016-02-08T13:36:37Z","body":"I am unable to install fabric js on `Node 4.2.4` `Npm 3.5.3` `Node-gyp 3.2.1`. Here are the errors i am having\r\n\r\n```code\r\nC:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.10240.0\\ucrt\\stdio.h(1925): warning C4005: 'snprintf': macro redefinition (compiling source file ..\\src\\CanvasGr\r\nadient.cc) [C:\\projects\\frontend\\node_modules\\fabric\\node_modules\\canvas\\build\\canvas.vcxproj]\r\n  C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.10240.0\\ucrt\\stdio.h(1925): note: command-line arguments:  see previous definition of 'snprintf' (compiling so\r\n  urce file ..\\src\\CanvasGradient.cc)\r\nC:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.10240.0\\ucrt\\stdio.h(1927): fatal error C1189: #error:  Macro definition of snprintf conflicts with Standard Lib\r\nrary function declaration (compiling source file ..\\src\\CanvasGradient.cc) [C:\\projects\\frontend\\node_modules\\fabric\\node_modules\\canvas\\build\\canvas.vcx\r\nproj]\r\n  color.cc\r\nC:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.10240.0\\ucrt\\stdio.h(1925): warning C4005: 'snprintf': macro redefinition (compiling source file ..\\src\\CanvasPa\r\nttern.cc) [C:\\projects\\frontend\\node_modules\\fabric\\node_modules\\canvas\\build\\canvas.vcxproj]\r\n  C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.10240.0\\ucrt\\stdio.h(1925): note: command-line arguments:  see previous definition of 'snprintf' (compiling so\r\n  urce file ..\\src\\CanvasPattern.cc)\r\nC:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.10240.0\\ucrt\\stdio.h(1927): fatal error C1189: #error:  Macro definition of snprintf conflicts with Standard Lib\r\nrary function declaration (compiling source file ..\\src\\CanvasPattern.cc) [C:\\projects\\frontend\\node_modules\\fabric\\node_modules\\canvas\\build\\canvas.vcxp\r\nroj]\r\n  Image.cc\r\nC:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.10240.0\\ucrt\\stdio.h(1925): warning C4005: 'snprintf': macro redefinition (compiling source file ..\\src\\Canvas.c\r\nc) [C:\\projects\\frontend\\node_modules\\fabric\\node_modules\\canvas\\build\\canvas.vcxproj]\r\n  C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.10240.0\\ucrt\\stdio.h(1925): note: command-line arguments:  see previous definition of 'snprintf' (compiling so\r\n  urce file ..\\src\\Canvas.cc)\r\nC:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.10240.0\\ucrt\\stdio.h(1927): fatal error C1189: #error:  Macro definition of snprintf conflicts with Standard Lib\r\nrary function declaration (compiling source file ..\\src\\Canvas.cc) [C:\\projects\\frontend\\node_modules\\fabric\\node_modules\\canvas\\build\\canvas.vcxproj]\r\n  ImageData.cc\r\nC:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.10240.0\\ucrt\\stdio.h(1925): warning C4005: 'snprintf': macro redefinition (compiling source file ..\\src\\color.cc\r\n) [C:\\projects\\frontend\\node_modules\\fabric\\node_modules\\canvas\\build\\canvas.vcxproj]\r\n  C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.10240.0\\ucrt\\stdio.h(1925): note: command-line arguments:  see previous definition of 'snprintf' (compiling so\r\n  urce file ..\\src\\color.cc)\r\nC:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.10240.0\\ucrt\\stdio.h(1927): fatal error C1189: #error:  Macro definition of snprintf conflicts with Standard Lib\r\nrary function declaration (compiling source file ..\\src\\color.cc) [C:\\projects\\frontend\\node_modules\\fabric\\node_modules\\canvas\\build\\canvas.vcxproj]\r\n  init.cc\r\nC:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.10240.0\\ucrt\\stdio.h(1925): warning C4005: 'snprintf': macro redefinition (compiling source file ..\\src\\Image.cc\r\n) [C:\\projects\\frontend\\node_modules\\fabric\\node_modules\\canvas\\build\\canvas.vcxproj]\r\n  C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.10240.0\\ucrt\\stdio.h(1925): note: command-line arguments:  see previous definition of 'snprintf' (compiling so\r\n  urce file ..\\src\\Image.cc)\r\nC:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.10240.0\\ucrt\\stdio.h(1927): fatal error C1189: #error:  Macro definition of snprintf conflicts with Standard Lib\r\nrary function declaration (compiling source file ..\\src\\Image.cc) [C:\\projects\\frontend\\node_modules\\fabric\\node_modules\\canvas\\build\\canvas.vcxproj]\r\n  PixelArray.cc\r\nC:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.10240.0\\ucrt\\stdio.h(1925): warning C4005: 'snprintf': macro redefinition (compiling source file ..\\src\\ImageDat\r\na.cc) [C:\\projects\\frontend\\node_modules\\fabric\\node_modules\\canvas\\build\\canvas.vcxproj]\r\n  C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.10240.0\\ucrt\\stdio.h(1925): note: command-line arguments:  see previous definition of 'snprintf' (compiling so\r\n  urce file ..\\src\\ImageData.cc)\r\nC:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.10240.0\\ucrt\\stdio.h(1927): fatal error C1189: #error:  Macro definition of snprintf conflicts with Standard Lib\r\nrary function declaration (compiling source file ..\\src\\ImageData.cc) [C:\\projects\\frontend\\node_modules\\fabric\\node_modules\\canvas\\build\\canvas.vcxproj]\r\nC:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.10240.0\\ucrt\\stdio.h(1925): warning C4005: 'snprintf': macro redefinition (compiling source file ..\\src\\CanvasRe\r\nnderingContext2d.cc) [C:\\projects\\frontend\\node_modules\\fabric\\node_modules\\canvas\\build\\canvas.vcxproj]\r\n  C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.10240.0\\ucrt\\stdio.h(1925): note: command-line arguments:  see previous definition of 'snprintf' (compiling so\r\n  urce file ..\\src\\CanvasRenderingContext2d.cc)\r\nC:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.10240.0\\ucrt\\stdio.h(1927): fatal error C1189: #error:  Macro definition of snprintf conflicts with Standard Lib\r\nrary function declaration (compiling source file ..\\src\\CanvasRenderingContext2d.cc) [C:\\projects\\frontend\\node_modules\\fabric\\node_modules\\canvas\\build\\\r\ncanvas.vcxproj]\r\nC:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.10240.0\\ucrt\\stdio.h(1925): warning C4005: 'snprintf': macro redefinition (compiling source file ..\\src\\init.cc)\r\n [C:\\projects\\frontend\\node_modules\\fabric\\node_modules\\canvas\\build\\canvas.vcxproj]\r\n  C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.10240.0\\ucrt\\stdio.h(1925): note: command-line arguments:  see previous definition of 'snprintf' (compiling so\r\n  urce file ..\\src\\init.cc)\r\nC:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.10240.0\\ucrt\\stdio.h(1927): fatal error C1189: #error:  Macro definition of snprintf conflicts with Standard Lib\r\nrary function declaration (compiling source file ..\\src\\init.cc) [C:\\projects\\frontend\\node_modules\\fabric\\node_modules\\canvas\\build\\canvas.vcxproj]\r\nC:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.10240.0\\ucrt\\stdio.h(1925): warning C4005: 'snprintf': macro redefinition (compiling source file ..\\src\\PixelArr\r\nay.cc) [C:\\projects\\frontend\\node_modules\\fabric\\node_modules\\canvas\\build\\canvas.vcxproj]\r\n  C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.10240.0\\ucrt\\stdio.h(1925): note: command-line arguments:  see previous definition of 'snprintf' (compiling so\r\n  urce file ..\\src\\PixelArray.cc)\r\nC:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.10240.0\\ucrt\\stdio.h(1927): fatal error C1189: #error:  Macro definition of snprintf conflicts with Standard Lib\r\nrary function declaration (compiling source file ..\\src\\PixelArray.cc) [C:\\projects\\frontend\\node_modules\\fabric\\node_modules\\canvas\\build\\canvas.vcxproj\r\n]\r\n```\r\n\r\nI have installed manually `Canvas v1.3.8` without any issues. Maybe you need to upgrade to `Canvas 1.3.x`?\r\n"},"comment":{"url":"https://api.github.com/repos/kangax/fabric.js/issues/comments/187205577","html_url":"https://github.com/kangax/fabric.js/issues/2755#issuecomment-187205577","issue_url":"https://api.github.com/repos/kangax/fabric.js/issues/2755","id":187205577,"user":{"login":"jtencate","id":902969,"avatar_url":"https://avatars.githubusercontent.com/u/902969?v=3","gravatar_id":"","url":"https://api.github.com/users/jtencate","html_url":"https://github.com/jtencate","followers_url":"https://api.github.com/users/jtencate/followers","following_url":"https://api.github.com/users/jtencate/following{/other_user}","gists_url":"https://api.github.com/users/jtencate/gists{/gist_id}","starred_url":"https://api.github.com/users/jtencate/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jtencate/subscriptions","organizations_url":"https://api.github.com/users/jtencate/orgs","repos_url":"https://api.github.com/users/jtencate/repos","events_url":"https://api.github.com/users/jtencate/events{/privacy}","received_events_url":"https://api.github.com/users/jtencate/received_events","type":"User","site_admin":false},"created_at":"2016-02-22T14:32:31Z","updated_at":"2016-02-22T14:32:31Z","body":"Just like to point out that this issue was on a Windows machine where #2609 was on iOS. Specifically the problem here is what is discussed here: http://stackoverflow.com/questions/27754492/vs-2015-compiling-cocos2d-x-3-3-error-fatal-error-c1189-error-macro-definiti"}}