{"action":"created","issue":{"url":"https://api.github.com/repos/postcss/gulp-postcss/issues/71","labels_url":"https://api.github.com/repos/postcss/gulp-postcss/issues/71/labels{/name}","comments_url":"https://api.github.com/repos/postcss/gulp-postcss/issues/71/comments","events_url":"https://api.github.com/repos/postcss/gulp-postcss/issues/71/events","html_url":"https://github.com/postcss/gulp-postcss/issues/71","id":129640003,"number":71,"title":"Cannot Install Under Windows 10","user":{"login":"cedon","id":12448364,"avatar_url":"https://avatars.githubusercontent.com/u/12448364?v=3","gravatar_id":"","url":"https://api.github.com/users/cedon","html_url":"https://github.com/cedon","followers_url":"https://api.github.com/users/cedon/followers","following_url":"https://api.github.com/users/cedon/following{/other_user}","gists_url":"https://api.github.com/users/cedon/gists{/gist_id}","starred_url":"https://api.github.com/users/cedon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cedon/subscriptions","organizations_url":"https://api.github.com/users/cedon/orgs","repos_url":"https://api.github.com/users/cedon/repos","events_url":"https://api.github.com/users/cedon/events{/privacy}","received_events_url":"https://api.github.com/users/cedon/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-01-29T01:56:29Z","updated_at":"2016-01-29T14:21:47Z","closed_at":"2016-01-29T09:42:51Z","body":"Trying to install gulp-postcss for a project and it will not install. I get a series of errors about compiling about msbuild.exe and then it dumps.\r\n\r\nHere is the full log of what NPM is doing: \r\n\r\n\r\n> gmsmith@0.4.5 preinstall D:\\WordPress\\themes\\jldc_scratch\\node_modules\\.staging\\gmsmith-20f74d87\r\n> gm -version || convert -version\r\n\r\n\r\n> canvas@1.1.6 install D:\\WordPress\\themes\\jldc_scratch\\node_modules\\canvas\r\n> node-gyp rebuild\r\n\r\n\r\nD:\\WordPress\\themes\\jldc_scratch\\node_modules\\canvas>if not defined npm_config_node_gyp (node \"C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\node-gyp-bin\\\\..\\..\\node_modules\\node-gyp\\bin\\node-gyp.js\" rebuild )  else (node  rebuild ) \r\nWarning: Missing input files:\r\nC:\\GTK\\bin\\zlib1.dll\r\nC:\\GTK\\bin\\libexpat-1.dll\r\nC:\\GTK\\bin\\libpng14-14.dll\r\nC:\\GTK\\bin\\libcairo-2.dll\r\nC:\\GTK\\bin\\libfontconfig-1.dll\r\nC:\\GTK\\bin\\libfreetype-6.dll\r\nBuilding the projects in this solution one at a time. To enable parallel build, please add the \"/m\" switch.\r\n  Canvas.cc\r\n  CanvasGradient.cc\r\n  CanvasPattern.cc\r\n  CanvasRenderingContext2d.cc\r\n  color.cc\r\n  Image.cc\r\n  ImageData.cc\r\n  init.cc\r\nC:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.10150.0\\ucrt\\stdio.h(1925): warning C4005: 'snprintf': macro redefinition (compiling source file ..\\src\\Image.cc) [D:\\WordPress\\themes\\jldc_scratch\\node_modules\\canvas\\build\\canvas.vcxproj]\r\n  C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.10150.0\\ucrt\\stdio.h(1925): note: command-line arguments:  see previous definition of 'snprintf' (compiling source file ..\\src\\Image.cc)\r\nC:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.10150.0\\ucrt\\stdio.h(1927): fatal error C1189: #error:  Macro definition of snprintf conflicts with Standard Library function declaration (compiling source file ..\\src\\Image.cc) [D:\\WordPress\\themes\\jldc_scratch\\node_modules\\canvas\\build\\canvas.vcxproj]\r\nC:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.10150.0\\ucrt\\stdio.h(1925): warning C4005: 'snprintf': macro redefinition (compiling source file ..\\src\\Canvas.cc) [D:\\WordPress\\themes\\jldc_scratch\\node_modules\\canvas\\build\\canvas.vcxproj]\r\n  C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.10150.0\\ucrt\\stdio.h(1925): note: command-line arguments:  see previous definition of 'snprintf' (compiling source file ..\\src\\Canvas.cc)\r\nC:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.10150.0\\ucrt\\stdio.h(1927): fatal error C1189: #error:  Macro definition of snprintf conflicts with Standard Library function declaration (compiling source file ..\\src\\Canvas.cc) [D:\\WordPress\\themes\\jldc_scratch\\node_modules\\canvas\\build\\canvas.vcxproj]\r\n  PixelArray.cc\r\nC:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.10150.0\\ucrt\\stdio.h(1925): warning C4005: 'snprintf': macro redefinition (compiling source file ..\\src\\CanvasPattern.cc) [D:\\WordPress\\themes\\jldc_scratch\\node_modules\\canvas\\build\\canvas.vcxproj]\r\n  C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.10150.0\\ucrt\\stdio.h(1925): note: command-line arguments:  see previous definition of 'snprintf' (compiling source file ..\\src\\CanvasPattern.cc)\r\nC:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.10150.0\\ucrt\\stdio.h(1927): fatal error C1189: #error:  Macro definition of snprintf conflicts with Standard Library function declaration (compiling source file ..\\src\\CanvasPattern.cc) [D:\\WordPress\\themes\\jldc_scratch\\node_modules\\canvas\\build\\canvas.vcxproj]\r\nC:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.10150.0\\ucrt\\stdio.h(1925): warning C4005: 'snprintf': macro redefinition (compiling source file ..\\src\\CanvasGradient.cc) [D:\\WordPress\\themes\\jldc_scratch\\node_modules\\canvas\\build\\canvas.vcxproj]\r\n  C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.10150.0\\ucrt\\stdio.h(1925): note: command-line arguments:  see previous definition of 'snprintf' (compiling source file ..\\src\\CanvasGradient.cc)\r\nC:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.10150.0\\ucrt\\stdio.h(1927): fatal error C1189: #error:  Macro definition of snprintf conflicts with Standard Library function declaration (compiling source file ..\\src\\CanvasGradient.cc) [D:\\WordPress\\themes\\jldc_scratch\\node_modules\\canvas\\build\\canvas.vcxproj]\r\nC:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.10150.0\\ucrt\\stdio.h(1925): warning C4005: 'snprintf': macro redefinition (compiling source file ..\\src\\color.cc) [D:\\WordPress\\themes\\jldc_scratch\\node_modules\\canvas\\build\\canvas.vcxproj]\r\n  C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.10150.0\\ucrt\\stdio.h(1925): note: command-line arguments:  see previous definition of 'snprintf' (compiling source file ..\\src\\color.cc)\r\nC:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.10150.0\\ucrt\\stdio.h(1927): fatal error C1189: #error:  Macro definition of snprintf conflicts with Standard Library function declaration (compiling source file ..\\src\\color.cc) [D:\\WordPress\\themes\\jldc_scratch\\node_modules\\canvas\\build\\canvas.vcxproj]\r\nC:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.10150.0\\ucrt\\stdio.h(1925): warning C4005: 'snprintf': macro redefinition (compiling source file ..\\src\\ImageData.cc) [D:\\WordPress\\themes\\jldc_scratch\\node_modules\\canvas\\build\\canvas.vcxproj]\r\n  C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.10150.0\\ucrt\\stdio.h(1925): note: command-line arguments:  see previous definition of 'snprintf' (compiling source file ..\\src\\ImageData.cc)\r\nC:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.10150.0\\ucrt\\stdio.h(1927): fatal error C1189: #error:  Macro definition of snprintf conflicts with Standard Library function declaration (compiling source file ..\\src\\ImageData.cc) [D:\\WordPress\\themes\\jldc_scratch\\node_modules\\canvas\\build\\canvas.vcxproj]\r\nC:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.10150.0\\ucrt\\stdio.h(1925): warning C4005: 'snprintf': macro redefinition (compiling source file ..\\src\\init.cc) [D:\\WordPress\\themes\\jldc_scratch\\node_modules\\canvas\\build\\canvas.vcxproj]\r\n  C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.10150.0\\ucrt\\stdio.h(1925): note: command-line arguments:  see previous definition of 'snprintf' (compiling source file ..\\src\\init.cc)\r\nC:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.10150.0\\ucrt\\stdio.h(1927): fatal error C1189: #error:  Macro definition of snprintf conflicts with Standard Library function declaration (compiling source file ..\\src\\init.cc) [D:\\WordPress\\themes\\jldc_scratch\\node_modules\\canvas\\build\\canvas.vcxproj]\r\nC:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.10150.0\\ucrt\\stdio.h(1925): warning C4005: 'snprintf': macro redefinition (compiling source file ..\\src\\PixelArray.cc) [D:\\WordPress\\themes\\jldc_scratch\\node_modules\\canvas\\build\\canvas.vcxproj]\r\n  C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.10150.0\\ucrt\\stdio.h(1925): note: command-line arguments:  see previous definition of 'snprintf' (compiling source file ..\\src\\PixelArray.cc)\r\nC:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.10150.0\\ucrt\\stdio.h(1927): fatal error C1189: #error:  Macro definition of snprintf conflicts with Standard Library function declaration (compiling source file ..\\src\\PixelArray.cc) [D:\\WordPress\\themes\\jldc_scratch\\node_modules\\canvas\\build\\canvas.vcxproj]\r\nC:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.10150.0\\ucrt\\stdio.h(1925): warning C4005: 'snprintf': macro redefinition (compiling source file ..\\src\\CanvasRenderingContext2d.cc) [D:\\WordPress\\themes\\jldc_scratch\\node_modules\\canvas\\build\\canvas.vcxproj]\r\n  C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.10150.0\\ucrt\\stdio.h(1925): note: command-line arguments:  see previous definition of 'snprintf' (compiling source file ..\\src\\CanvasRenderingContext2d.cc)\r\nC:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.10150.0\\ucrt\\stdio.h(1927): fatal error C1189: #error:  Macro definition of snprintf conflicts with Standard Library function declaration (compiling source file ..\\src\\CanvasRenderingContext2d.cc) [D:\\WordPress\\themes\\jldc_scratch\\node_modules\\canvas\\build\\canvas.vcxproj]\r\n\r\n'gm' is not recognized as an internal or external command,\r\noperable program or batch file.\r\nInvalid drive specification.\r\nnpm WARN install:gmsmith@0.4.5 gmsmith@0.4.5 preinstall: `gm -version || convert -version`\r\nnpm WARN install:gmsmith@0.4.5 Exit status 4\r\ngyp ERR! build error\r\ngyp ERR! stack Error: `C:\\Program Files (x86)\\MSBuild\\14.0\\bin\\msbuild.exe` failed with exit code: 1\r\ngyp ERR! stack     at ChildProcess.onExit (C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\lib\\build.js:276:23)\r\ngyp ERR! stack     at emitTwo (events.js:87:13)\r\ngyp ERR! stack     at ChildProcess.emit (events.js:172:7)\r\ngyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)\r\ngyp ERR! System Windows_NT 10.0.10586\r\ngyp ERR! command \"C:\\\\Program Files\\\\nodejs\\\\node.exe\" \"C:\\\\Program Files\\\\nodejs\\\\node_modules\\\\npm\\\\node_modules\\\\node-gyp\\\\bin\\\\node-gyp.js\" \"rebuild\"\r\ngyp ERR! cwd D:\\WordPress\\themes\\jldc_scratch\\node_modules\\canvas\r\ngyp ERR! node -v v4.2.1\r\ngyp ERR! node-gyp -v v3.2.1\r\ngyp ERR! not ok\r\nnpm WARN install:canvas@1.1.6 canvas@1.1.6 install: `node-gyp rebuild`\r\nnpm WARN install:canvas@1.1.6 Exit status 1\r\nnpm WARN optional Skipping failed optional dependency /chokidar/fsevents:\r\nnpm WARN notsup Not compatible with your operating system or architecture: fsevents@1.0.6"},"comment":{"url":"https://api.github.com/repos/postcss/gulp-postcss/issues/comments/176779370","html_url":"https://github.com/postcss/gulp-postcss/issues/71#issuecomment-176779370","issue_url":"https://api.github.com/repos/postcss/gulp-postcss/issues/71","id":176779370,"user":{"login":"cedon","id":12448364,"avatar_url":"https://avatars.githubusercontent.com/u/12448364?v=3","gravatar_id":"","url":"https://api.github.com/users/cedon","html_url":"https://github.com/cedon","followers_url":"https://api.github.com/users/cedon/followers","following_url":"https://api.github.com/users/cedon/following{/other_user}","gists_url":"https://api.github.com/users/cedon/gists{/gist_id}","starred_url":"https://api.github.com/users/cedon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cedon/subscriptions","organizations_url":"https://api.github.com/users/cedon/orgs","repos_url":"https://api.github.com/users/cedon/repos","events_url":"https://api.github.com/users/cedon/events{/privacy}","received_events_url":"https://api.github.com/users/cedon/received_events","type":"User","site_admin":false},"created_at":"2016-01-29T14:21:47Z","updated_at":"2016-01-29T14:21:47Z","body":"I got it in. Apparently gulp-spritesmith was causing all the problems. It was installed with npm install since the package.json was  a copy from another WP theme project. The error just decided to manifest itself when I was trying to install PostCSS for covnerting the workflow from SASS.\r\n\r\nI zapped the node_modules directory, removed gulp-spritesmith from package.json and PostCSS went right in without a hitch."}}