{"action":"created","issue":{"url":"https://api.github.com/repos/yarnpkg/yarn/issues/2282","repository_url":"https://api.github.com/repos/yarnpkg/yarn","labels_url":"https://api.github.com/repos/yarnpkg/yarn/issues/2282/labels{/name}","comments_url":"https://api.github.com/repos/yarnpkg/yarn/issues/2282/comments","events_url":"https://api.github.com/repos/yarnpkg/yarn/issues/2282/events","html_url":"https://github.com/yarnpkg/yarn/issues/2282","id":196231369,"number":2282,"title":"Skipped Optional Dependency Causes Error During [4/4] Building fresh packages...","user":{"login":"ryanelian","id":8892187,"avatar_url":"https://avatars.githubusercontent.com/u/8892187?v=3","gravatar_id":"","url":"https://api.github.com/users/ryanelian","html_url":"https://github.com/ryanelian","followers_url":"https://api.github.com/users/ryanelian/followers","following_url":"https://api.github.com/users/ryanelian/following{/other_user}","gists_url":"https://api.github.com/users/ryanelian/gists{/gist_id}","starred_url":"https://api.github.com/users/ryanelian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ryanelian/subscriptions","organizations_url":"https://api.github.com/users/ryanelian/orgs","repos_url":"https://api.github.com/users/ryanelian/repos","events_url":"https://api.github.com/users/ryanelian/events{/privacy}","received_events_url":"https://api.github.com/users/ryanelian/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-12-17T16:55:43Z","updated_at":"2016-12-17T19:03:22Z","closed_at":"2016-12-17T19:03:22Z","body":"**Version:** 0.17.10\r\n**OS:** Windows 10 64-bit\r\n\r\n**Bug:** \r\n\r\nThe package that caused the bug in question is `fsevents` when installed in Windows, apparently.\r\n```\r\nE:\\VS\\ryan-compiler\\ryan-compiler>yarn why fsevents\r\nyarn why v0.17.10\r\n[1/4] Why do we have the module \"fsevents\"...?\r\n[2/4] Initialising dependency graph...\r\n[3/4] Finding dependency...\r\n[4/4] Calculating file sizes...\r\ninfo This module exists because \"gulp-watch#chokidar\" depends on it.\r\nDone in 1.78s.\r\n```\r\n\r\nWhen installing `gulp-watch`, which contains `chokidar` using NPM, these messages will appear:\r\n```\r\nnpm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules\\chokidar\\node_modules\\fsevents):\r\nnpm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.0.15: wanted {\"os\":\"darwin\",\"arch\":\"any\"} (current: {\"os\":\"win32\",\"arch\":\"x64\"})\r\n```\r\n\r\nWhen `yarn` is used instead, it does this:\r\n```\r\nE:\\VS\\ryan-compiler\\ryan-compiler>yarn\r\nyarn install v0.17.10\r\n[1/4] Resolving packages...\r\n[2/4] Fetching packages...\r\nwarning fsevents@1.0.15: The platform \"win32\" is incompatible with this module.\r\ninfo \"fsevents@1.0.15\" is an optional dependency and failed compatibility check. Excluding it from installation.\r\n[3/4] Linking dependencies...\r\n[4/4] Building fresh packages...\r\n[1/2] ⠠ node-sass: Downloading binary from https://github.com/sass/node-sass/releases/download/v4.0.0/win32-x64\r\n[2/2] ⠠ fsevents: info spawn args   '-Goutput_dir=.' ]\r\n[-/2] ⠠ waiting...\r\n[-/2] ⠠ waiting...\r\nerror Error running install script for optional dependency: \"E:\\\\VS\\\\ryan-compiler\\\\ryan-compiler\\\\node_modules\\\\fsevents: Command failed.\\nExit code: 1\\nCommand: C:\\\\Windows\\\\system32\\\\cmd.exe\\nArguments: /d /s /c node-pre-gyp install --fallback-to-build\\nDirectory: E:\\\\VS\\\\ryan-compiler\\\\ryan-compiler\\\\node_modules\\\\fsevents\\nOutput:\\nnode-pre-gyp info it worked if it ends with ok\\nnode-pre-gyp info using node-pre-gyp@0.6.29\\nnode-pre-gyp info using node@6.9.2 | win32 | x64\\nnode-pre-gyp info check checked for \\\"E:\\\\VS\\\\ryan-compiler\\\\ryan-compiler\\\\node_modules\\\\fsevents\\\\lib\\\\binding\\\\Release\\\\node-v48-win32-x64\\\\fse.node\\\" (not found)\\nnode-pre-gyp http GET https://fsevents-binaries.s3-us-west-2.amazonaws.com/v1.0.15/fse-v1.0.15-node-v48-win32-x64.tar.gz\\nnode-pre-gyp http 404 https://fsevents-binaries.s3-us-west-2.amazonaws.com/v1.0.15/fse-v1.0.15-node-v48-win32-x64.tar.gz\\nnode-pre-gyp ERR! Tried to download: https://fsevents-binaries.s3-us-west-2.amazonaws.com/v1.0.15/fse-v1.0.15-node-v48-win32-x64.tar.gz \\nnode-pre-gyp ERR! Pre-built binaries not found for fsevents@1.0.15 and node@6.9.2 (node-v48 ABI) (falling back to source compile with node-gyp) \\nnode-pre-gyp http Pre-built binary not available for your system, looked for https://fsevents-binaries.s3-us-west-2.amazonaws.com/v1.0.15/fse-v1.0.15-node-v48-win32-x64.tar.gz \\ngyp info it worked if it ends with ok\\ngyp info using node-gyp@3.4.0\\ngyp info using node@6.9.2 | win32 | x64\\ngyp info ok \\ngyp info it worked if it ends with ok\\ngyp info using node-gyp@3.4.0\\ngyp info using node@6.9.2 | win32 | x64\\ngyp info spawn C:\\\\Python27\\\\python.EXE\\ngyp info spawn args [ 'E:\\\\\\\\VS\\\\\\\\ryan-compiler\\\\\\\\ryan-compiler\\\\\\\\node_modules\\\\\\\\node-gyp\\\\\\\\gyp\\\\\\\\gyp_main.py',\\ngyp info spawn args   'binding.gyp',\\ngyp info spawn args   '-f',\\ngyp info spawn args   'msvs',\\ngyp info spawn args   '-G',\\ngyp info spawn args   'msvs_version=auto',\\ngyp info spawn args   '-I',\\ngyp info spawn args   'E:\\\\\\\\VS\\\\\\\\ryan-compiler\\\\\\\\ryan-compiler\\\\\\\\node_modules\\\\\\\\fsevents\\\\\\\\build\\\\\\\\config.gypi',\\ngyp info spawn args   '-I',\\ngyp info spawn args   'E:\\\\\\\\VS\\\\\\\\ryan-compiler\\\\\\\\ryan-compiler\\\\\\\\node_modules\\\\\\\\node-gyp\\\\\\\\addon.gypi',\\ngyp info spawn args   '-I',\\ngyp info spawn args   'C:\\\\\\\\Users\\\\\\\\Ryan\\\\\\\\.node-gyp\\\\\\\\6.9.2\\\\\\\\include\\\\\\\\node\\\\\\\\common.gypi',\\ngyp info spawn args   '-Dlibrary=shared_library',\\ngyp info spawn args   '-Dvisibility=default',\\ngyp info spawn args   '-Dnode_root_dir=C:\\\\\\\\Users\\\\\\\\Ryan\\\\\\\\.node-gyp\\\\\\\\6.9.2',\\ngyp info spawn args   '-Dnode_gyp_dir=E:\\\\\\\\VS\\\\\\\\ryan-compiler\\\\\\\\ryan-compiler\\\\\\\\node_modules\\\\\\\\node-gyp',\\ngyp info spawn args   '-Dnode_lib_file=node.lib',\\ngyp info spawn args   '-Dmodule_root_dir=E:\\\\\\\\VS\\\\\\\\ryan-compiler\\\\\\\\ryan-compiler\\\\\\\\node_modules\\\\\\\\fsevents',\\ngyp info spawn args   '--depth=.',\\ngyp info spawn args   '--no-parallel',\\ngyp info spawn args   '--generator-output',\\ngyp info spawn args   'E:\\\\\\\\VS\\\\\\\\ryan-compiler\\\\\\\\ryan-compiler\\\\\\\\node_modules\\\\\\\\fsevents\\\\\\\\build',\\ngyp info spawn args   '-Goutput_dir=.' ]\\nTraceback (most recent call last):\\r\\n  File \\\"E:\\\\VS\\\\ryan-compiler\\\\ryan-compiler\\\\node_modules\\\\node-gyp\\\\gyp\\\\gyp_main.py\\\", line 16, in <module>\\r\\n    sys.exit(gyp.script_main())\\r\\n  File \\\"E:\\\\VS\\\\ryan-compiler\\\\ryan-compiler\\\\node_modules\\\\node-gyp\\\\gyp\\\\pylib\\\\gyp\\\\__init__.py\\\", line 545, in script_main\\r\\n    return main(sys.argv[1:])\\r\\n  File \\\"E:\\\\VS\\\\ryan-compiler\\\\ryan-compiler\\\\node_modules\\\\node-gyp\\\\gyp\\\\pylib\\\\gyp\\\\__init__.py\\\", line 538, in main\\r\\n    return gyp_main(args)\\r\\n  File \\\"E:\\\\VS\\\\ryan-compiler\\\\ryan-compiler\\\\node_modules\\\\node-gyp\\\\gyp\\\\pylib\\\\gyp\\\\__init__.py\\\", line 523, in gyp_main\\r\\n    generator.GenerateOutput(flat_list, targets, data, params)\\r\\n  File \\\"E:\\\\VS\\\\ryan-compiler\\\\ryan-compiler\\\\node_modules\\\\node-gyp\\\\gyp\\\\pylib\\\\gyp\\\\generator\\\\msvs.py\\\", line 2003, in GenerateOutput\\r\\n    sln_projects, project_objects, flat=msvs_version.FlatSolution())\\r\\n  File \\\"E:\\\\VS\\\\ryan-compiler\\\\ryan-compiler\\\\node_modules\\\\node-gyp\\\\gyp\\\\pylib\\\\gyp\\\\generator\\\\msvs.py\\\", line 1762, in _GatherSolutionFolders\\r\\n    return _DictsToFolders('', root, flat)\\r\\n  File \\\"E:\\\\VS\\\\ryan-compiler\\\\ryan-compiler\\\\node_modules\\\\node-gyp\\\\gyp\\\\pylib\\\\gyp\\\\generator\\\\msvs.py\\\", line 1715, in _DictsToFolders\\r\\n    for folder, contents in bucket.iteritems():\\r\\nAttributeError: 'MSVSProject' object has no attribute 'iteritems'\\r\\ngyp ERR! configure error \\ngyp ERR! stack Error: `gyp` failed with exit code: 1\\ngyp ERR! stack     at ChildProcess.onCpExit (E:\\\\VS\\\\ryan-compiler\\\\ryan-compiler\\\\node_modules\\\\node-gyp\\\\lib\\\\configure.js:305:16)\\ngyp ERR! stack     at emitTwo (events.js:106:13)\\ngyp ERR! stack     at ChildProcess.emit (events.js:191:7)\\ngyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)\\ngyp ERR! System Windows_NT 10.0.14393\\ngyp ERR! command \\\"C:\\\\\\\\Program Files\\\\\\\\nodejs\\\\\\\\node.exe\\\" \\\"E:\\\\\\\\VS\\\\\\\\ryan-compiler\\\\\\\\ryan-compiler\\\\\\\\node_modules\\\\\\\\node-gyp\\\\\\\\bin\\\\\\\\node-gyp.js\\\" \\\"configure\\\" \\\"--fallback-to-build\\\" \\\"--module=E:\\\\\\\\VS\\\\\\\\ryan-compiler\\\\\\\\ryan-compiler\\\\\\\\node_modules\\\\\\\\fsevents\\\\\\\\lib\\\\\\\\binding\\\\\\\\Release\\\\\\\\node-v48-win32-x64\\\\\\\\fse.node\\\" \\\"--module_name=fse\\\" \\\"--module_path=E:\\\\\\\\VS\\\\\\\\ryan-compiler\\\\\\\\ryan-compiler\\\\\\\\node_modules\\\\\\\\fsevents\\\\\\\\lib\\\\\\\\binding\\\\\\\\Release\\\\\\\\node-v48-win32-x64\\\"\\ngyp ERR! cwd E:\\\\VS\\\\ryan-compiler\\\\ryan-compiler\\\\node_modules\\\\fsevents\\ngyp ERR! node -v v6.9.2\\ngyp ERR! node-gyp -v v3.4.0\\ngyp ERR! not ok \\nnode-pre-gyp ERR! build error \\nnode-pre-gyp ERR! stack Error: Failed to execute 'C:\\\\Program Files\\\\nodejs\\\\node.exe E:\\\\VS\\\\ryan-compiler\\\\ryan-compiler\\\\node_modules\\\\node-gyp\\\\bin\\\\node-gyp.js configure --fallback-to-build --module=E:\\\\VS\\\\ryan-compiler\\\\ryan-compiler\\\\node_modules\\\\fsevents\\\\lib\\\\binding\\\\Release\\\\node-v48-win32-x64\\\\fse.node --module_name=fse --module_path=E:\\\\VS\\\\ryan-compiler\\\\ryan-compiler\\\\node_modules\\\\fsevents\\\\lib\\\\binding\\\\Release\\\\node-v48-win32-x64' (1)\\nnode-pre-gyp ERR! stack     at ChildProcess.<anonymous> (E:\\\\VS\\\\ryan-compiler\\\\ryan-compiler\\\\node_modules\\\\fsevents\\\\node_modules\\\\node-pre-gyp\\\\lib\\\\util\\\\compile.js:83:29)\\nnode-pre-gyp ERR! stack     at emitTwo (events.js:106:13)\\nnode-pre-gyp ERR! stack     at ChildProcess.emit (events.js:191:7)\\nnode-pre-gyp ERR! stack     at maybeClose (internal/child_process.js:877:16)\\nnode-pre-gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)\\nnode-pre-gyp ERR! System Windows_NT 10.0.14393\\nnode-pre-gyp ERR! command \\\"C:\\\\\\\\Program Files\\\\\\\\nodejs\\\\\\\\node.exe\\\" \\\"E:\\\\\\\\VS\\\\\\\\ryan-compiler\\\\\\\\ryan-compiler\\\\\\\\node_modules\\\\\\\\fsevents\\\\\\\\node_modules\\\\\\\\node-pre-gyp\\\\\\\\bin\\\\\\\\node-pre-gyp\\\" \\\"install\\\" \\\"--fallback-to-build\\\"\\nnode-pre-gyp ERR! cwd E:\\\\VS\\\\ryan-compiler\\\\ryan-compiler\\\\node_modules\\\\fsevents\\nnode-pre-gyp ERR! node -v v6.9.2\\nnode-pre-gyp ERR! node-pre-gyp -v v0.6.29\\nnode-pre-gyp ERR! not ok \\nFailed to execute 'C:\\\\Program Files\\\\nodejs\\\\node.exe E:\\\\VS\\\\ryan-compi\r\n\r\nDone in 171.63s.\r\n```\r\n\r\nThat is quite a gigantic error output for a package which is skipped. I'm scared that my packages aren't properly restored."},"comment":{"url":"https://api.github.com/repos/yarnpkg/yarn/issues/comments/267780828","html_url":"https://github.com/yarnpkg/yarn/issues/2282#issuecomment-267780828","issue_url":"https://api.github.com/repos/yarnpkg/yarn/issues/2282","id":267780828,"user":{"login":"ryanelian","id":8892187,"avatar_url":"https://avatars.githubusercontent.com/u/8892187?v=3","gravatar_id":"","url":"https://api.github.com/users/ryanelian","html_url":"https://github.com/ryanelian","followers_url":"https://api.github.com/users/ryanelian/followers","following_url":"https://api.github.com/users/ryanelian/following{/other_user}","gists_url":"https://api.github.com/users/ryanelian/gists{/gist_id}","starred_url":"https://api.github.com/users/ryanelian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ryanelian/subscriptions","organizations_url":"https://api.github.com/users/ryanelian/orgs","repos_url":"https://api.github.com/users/ryanelian/repos","events_url":"https://api.github.com/users/ryanelian/events{/privacy}","received_events_url":"https://api.github.com/users/ryanelian/received_events","type":"User","site_admin":false},"created_at":"2016-12-17T19:03:22Z","updated_at":"2016-12-17T19:03:22Z","body":"Okay, cool. I upgraded successfully to 0.18.1.\r\n\r\nUnrelated feature suggestion: `self-update` should probably has a progress bar, no? It currently does not have one...\r\n\r\n```\r\nE:\\VS\\ryan-compiler\\ryan-compiler>yarn\r\nyarn install v0.18.1\r\n[1/4] Resolving packages...\r\n[2/4] Fetching packages...\r\nwarning fsevents@1.0.15: The platform \"win32\" is incompatible with this module.\r\ninfo \"fsevents@1.0.15\" is an optional dependency and failed compatibility check. Excluding it from installation.\r\n[3/4] Linking dependencies...\r\n[4/4] Building fresh packages...\r\nDone in 185.46s.\r\n```\r\n\r\nExcellent, no more gigantic error messages. Thank you, guys."}}
{"actor":{"display_login":"ryanelian"}}