{"action":"opened","issue":{"url":"https://api.github.com/repos/TooTallNate/node-weak/issues/90","repository_url":"https://api.github.com/repos/TooTallNate/node-weak","labels_url":"https://api.github.com/repos/TooTallNate/node-weak/issues/90/labels{/name}","comments_url":"https://api.github.com/repos/TooTallNate/node-weak/issues/90/comments","events_url":"https://api.github.com/repos/TooTallNate/node-weak/issues/90/events","html_url":"https://github.com/TooTallNate/node-weak/issues/90","id":313431106,"number":90,"title":"\"Error running install script for optional dependency\" on Windows","user":{"login":"kaiyoma","id":10719780,"avatar_url":"https://avatars1.githubusercontent.com/u/10719780?v=4","gravatar_id":"","url":"https://api.github.com/users/kaiyoma","html_url":"https://github.com/kaiyoma","followers_url":"https://api.github.com/users/kaiyoma/followers","following_url":"https://api.github.com/users/kaiyoma/following{/other_user}","gists_url":"https://api.github.com/users/kaiyoma/gists{/gist_id}","starred_url":"https://api.github.com/users/kaiyoma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kaiyoma/subscriptions","organizations_url":"https://api.github.com/users/kaiyoma/orgs","repos_url":"https://api.github.com/users/kaiyoma/repos","events_url":"https://api.github.com/users/kaiyoma/events{/privacy}","received_events_url":"https://api.github.com/users/kaiyoma/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-04-11T18:08:27Z","updated_at":"2018-04-11T18:08:27Z","closed_at":null,"author_association":"NONE","body":"After adding esprint to our project recently, yarn installed node-weak as well, but the post-install script fails on Windows:\r\n\r\n```\r\nyarn install v1.5.1\r\n[1/4] Resolving packages...\r\n[2/4] Fetching packages...\r\ninfo fsevents@1.1.2: The platform \"win32\" is incompatible with this module.\r\ninfo \"fsevents@1.1.2\" is an optional dependency and failed compatibility check. Excluding it from installation.\r\ninfo fsevents@1.1.3: The platform \"win32\" is incompatible with this module.\r\ninfo \"fsevents@1.1.3\" is an optional dependency and failed compatibility check. Excluding it from installation.\r\n[3/4] Linking dependencies...\r\nwarning \" > chai-enzyme@1.0.0-beta.0\" has unmet peer dependency \"cheerio@0.19.x || 0.20.x || 0.22.x || ^1.0.0-0\".\r\nwarning \" > karma-benchmark-reporter@0.1.1\" has unmet peer dependency \"karma@>=0.9\".\r\n[4/4] Building fresh packages...\r\nwarning Error running install script for optional dependency: \"C:\\\\Users\\\\<User>\\\\Work\\\\<project>\\\r\node_modules\\\\weak: Command failed.\r\nExit code: 1\r\nCommand: C:\\\\WINDOWS\\\\system32\\\\cmd.exe\r\nArguments: /d /s /c node-gyp rebuild\r\nDirectory: C:\\\\Users\\\\<User>\\\\Work\\\\<project>\\\r\node_modules\\\\weak\r\nOutput:\r\nC:\\\\Users\\\\<User>\\\\Work\\\\<project>\\\r\node_modules\\\\weak>if not defined npm_config_node_gyp (node \\\"C:\\\\Program Files\\\\Node.js\\\r\node_modules\\\r\npm\\\\bin\\\r\node-gyp-bin\\\\\\\\..\\\\..\\\r\node_modules\\\r\node-gyp\\\\bin\\\r\node-gyp.js\\\" rebuild )  else (node \\\"\\\" rebuild )\r\ngyp info it worked if it ends with ok\r\ngyp info using node-gyp@3.6.2\r\ngyp info using node@8.9.0 | win32 | x64\r\ngyp http GET https://nodejs.org/download/release/v8.9.0/node-v8.9.0-headers.tar.gz\r\ngyp http 200 https://nodejs.org/download/release/v8.9.0/node-v8.9.0-headers.tar.gz\r\ngyp http GET https://nodejs.org/download/release/v8.9.0/SHASUMS256.txt\r\ngyp http GET https://nodejs.org/download/release/v8.9.0/win-x86/node.lib\r\ngyp http GET https://nodejs.org/download/release/v8.9.0/win-x64/node.lib\r\ngyp http 200 https://nodejs.org/download/release/v8.9.0/win-x86/node.lib\r\ngyp http 200 https://nodejs.org/download/release/v8.9.0/SHASUMS256.txt\r\ngyp http 200 https://nodejs.org/download/release/v8.9.0/win-x64/node.lib\r\ngyp info spawn C:\\\\Program Files\\\\Python\\\\python.EXE\r\ngyp info spawn args [ 'C:\\\\\\\\Program Files\\\\\\\\Node.js\\\\\\\r\node_modules\\\\\\\r\npm\\\\\\\r\node_modules\\\\\\\r\node-gyp\\\\\\\\gyp\\\\\\\\gyp_main.py',\r\ngyp info spawn args   'binding.gyp',\r\ngyp info spawn args   '-f',\r\ngyp info spawn args   'msvs',\r\ngyp info spawn args   '-G',\r\ngyp info spawn args   'msvs_version=auto',\r\ngyp info spawn args   '-I',\r\ngyp info spawn args   'C:\\\\\\\\Users\\\\\\\\<User>\\\\\\\\Work\\\\\\\\<project>\\\\\\\r\node_modules\\\\\\\\weak\\\\\\\\build\\\\\\\\config.gypi',\r\ngyp info spawn args   '-I',\r\ngyp info spawn args   'C:\\\\\\\\Program Files\\\\\\\\Node.js\\\\\\\r\node_modules\\\\\\\r\npm\\\\\\\r\node_modules\\\\\\\r\node-gyp\\\\\\\\addon.gypi',\r\ngyp info spawn args   '-I',\r\ngyp info spawn args   'C:\\\\\\\\Users\\\\\\\\<User>\\\\\\\\.node-gyp\\\\\\\\8.9.0\\\\\\\\include\\\\\\\r\node\\\\\\\\common.gypi',\r\ngyp info spawn args   '-Dlibrary=shared_library',\r\ngyp info spawn args   '-Dvisibility=default',\r\ngyp info spawn args   '-Dnode_root_dir=C:\\\\\\\\Users\\\\\\\\<User>\\\\\\\\.node-gyp\\\\\\\\8.9.0',\r\ngyp info spawn args   '-Dnode_gyp_dir=C:\\\\\\\\Program Files\\\\\\\\Node.js\\\\\\\r\node_modules\\\\\\\r\npm\\\\\\\r\node_modules\\\\\\\r\node-gyp',\r\ngyp info spawn args   '-Dnode_lib_file=C:\\\\\\\\Users\\\\\\\\<User>\\\\\\\\.node-gyp\\\\\\\\8.9.0\\\\\\\\<(target_arch)\\\\\\\r\node.lib',\r\ngyp info spawn args   '-Dmodule_root_dir=C:\\\\\\\\Users\\\\\\\\<User>\\\\\\\\Work\\\\\\\\<project>\\\\\\\r\node_modules\\\\\\\\weak',\r\ngyp info spawn args   '-Dnode_engine=v8',\r\ngyp info spawn args   '--depth=.',\r\ngyp info spawn args   '--no-parallel',\r\ngyp info spawn args   '--generator-output',\r\ngyp info spawn args   'C:\\\\\\\\Users\\\\\\\\<User>\\\\\\\\Work\\\\\\\\<project>\\\\\\\r\node_modules\\\\\\\\weak\\\\\\\\build',\r\ngyp info spawn args   '-Goutput_dir=.' ]\r\ngyp info spawn C:\\\\Windows\\\\Microsoft.NET\\\\Framework\\\\v4.0.30319\\\\msbuild.exe\r\ngyp info spawn args [ 'build/binding.sln',\r\ngyp info spawn args   '/clp:Verbosity=minimal',\r\ngyp info spawn args   '/nologo',\r\ngyp info spawn args   '/p:Configuration=Release;Platform=x64' ]\r\nBuilding the projects in this solution one at a time. To enable parallel build, please add the \\\"/m\\\" switch.\r\nMSBUILD : error MSB4132: The tools version \\\"2.0\\\" is unrecognized. Available tools versions are \\\"4.0\\\".\r\ngyp ERR! build error\r\ngyp ERR! stack Error: `C:\\\\Windows\\\\Microsoft.NET\\\\Framework\\\\v4.0.30319\\\\msbuild.exe` failed with exit code: 1\r\ngyp ERR! stack     at ChildProcess.onExit (C:\\\\Program Files\\\\Node.js\\\r\node_modules\\\r\npm\\\r\node_modules\\\r\node-gyp\\\\lib\\\\build.js:258:23)\r\ngyp ERR! stack     at emitTwo (events.js:126:13)\r\ngyp ERR! stack     at ChildProcess.emit (events.js:214:7)\r\ngyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:198:12)\r\ngyp ERR! System Windows_NT 10.0.16299\r\ngyp ERR! command \\\"C:\\\\\\\\Program Files\\\\\\\\Node.js\\\\\\\r\node.exe\\\" \\\"C:\\\\\\\\Program Files\\\\\\\\Node.js\\\\\\\r\node_modules\\\\\\\r\npm\\\\\\\r\node_modules\\\\\\\r\node-gyp\\\\\\\\bin\\\\\\\r\node-gyp.js\\\" \\\"rebuild\\\"\r\ngyp ERR! cwd C:\\\\Users\\\\<User>\\\\Work\\\\<project>\\\r\node_modules\\\\weak\r\ngyp ERR! node -v v8.9.0\r\ngyp ERR! node-gyp -v v3.6.2\r\ngyp ERR! not ok\"\r\ninfo This module is OPTIONAL, you can safely ignore this error\r\nDone in 38.45s.\r\n```"}}
{"actor":{"display_login":"kaiyoma"}}