{"action":"created","issue":{"url":"https://api.github.com/repos/dunnock/react-sigma/issues/21","repository_url":"https://api.github.com/repos/dunnock/react-sigma","labels_url":"https://api.github.com/repos/dunnock/react-sigma/issues/21/labels{/name}","comments_url":"https://api.github.com/repos/dunnock/react-sigma/issues/21/comments","events_url":"https://api.github.com/repos/dunnock/react-sigma/issues/21/events","html_url":"https://github.com/dunnock/react-sigma/issues/21","id":210914263,"number":21,"title":"Dependencies have several issues - missing dependencies, conflicting dependencies, out of date dependencies","user":{"login":"jstafford","id":525118,"avatar_url":"https://avatars2.githubusercontent.com/u/525118?v=3","gravatar_id":"","url":"https://api.github.com/users/jstafford","html_url":"https://github.com/jstafford","followers_url":"https://api.github.com/users/jstafford/followers","following_url":"https://api.github.com/users/jstafford/following{/other_user}","gists_url":"https://api.github.com/users/jstafford/gists{/gist_id}","starred_url":"https://api.github.com/users/jstafford/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jstafford/subscriptions","organizations_url":"https://api.github.com/users/jstafford/orgs","repos_url":"https://api.github.com/users/jstafford/repos","events_url":"https://api.github.com/users/jstafford/events{/privacy}","received_events_url":"https://api.github.com/users/jstafford/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-02-28T21:59:46Z","updated_at":"2017-03-02T13:20:41Z","closed_at":"2017-03-01T07:26:26Z","body":"I wanted to take a look at this package, so I cloned it. Unfortunately I missed the line in the Contributing readme about setting up for canvas (that might need to be highlighted a little more), so when I did \"yarn install\" I got the errors below. Since there were so many, I just started at the top.\r\n\r\n- webpack dependency conflicting with webpack devDependency looks like the case of someone using an old version of yarn and doing a yarn add without the -D flag. Easy enough to update the devDependency to the newer version and remove webpack from the dependency list. \r\n- Same issue for whatwg-fetch.  \r\n- While I was there I noticed that react and react-dom were both listed as dependencies and peerDependencies, when clearly they should have been devDependencies and peerDependencies. -- The unmet dependency of @kadira/storybook-addons was easy to fix. \r\n- react-dev-utils 0.3.0 depending on webpack 1 was easy to fix by going up to 0.5.2.\r\n- ajv-keywords having the wrong peer dependency on ajv had me stumped for a while, but it was a problem with the versions in the yarn.lock file that was fixed with a \"yarn upgrade\"\r\n\r\nFinally I got to the real failure and it still wasn't fixed. I decided to go ahead and upgrade everything else, thinking that would surely fix the problem. Of course it didn't. Eventually I took a more careful look at the error message, and realized that all I needed to do was a \"brew install pkg-config\"\r\n\r\nLong story short, I have a pull request to go along with this issue if you are interested in taking all or part of it.\r\n\r\n`yarn install v0.21.3\r\nwarning react-sigma@1.2.17: \"dependencies\" has dependency \"webpack\" with range \"^2.2.1\" that collides with a dependency in \"devDependencies\" of the same name with version \"2.2.0-rc.3\"\r\nwarning react-sigma@1.2.17: \"dependencies\" has dependency \"whatwg-fetch\" with range \"^2.0.1\" that collides with a dependency in \"devDependencies\" of the same name with version \"1.0.0\"\r\n[1/4] 🔍  Resolving packages...\r\n[2/4] 🚚  Fetching packages...\r\n[3/4] 🔗  Linking dependencies...\r\nwarning \"@kadira/storybook-addon-knobs@1.7.1\" has unmet peer dependency \"@kadira/storybook-addons@^1.3.0\".\r\nwarning \"@kadira/storybook-addon-options@1.0.1\" has unmet peer dependency \"@kadira/storybook-addons@^1.5.0\".\r\nwarning \"react-dev-utils@0.3.0\" has incorrect peer dependency \"webpack@^1.13.2\".\r\nwarning \"ajv-keywords@1.4.1\" has incorrect peer dependency \"ajv@>=4.10.0\".\r\n[4/4] 📃  Building fresh packages...\r\n[1/2] ⠄ fsevents: info ok\r\n[2/2] ⠄ canvas: spawn args   '-Goutput_dir=.' ]\r\n[-/2] ⠄ waiting...\r\n[-/2] ⠄ waiting...\r\nerror /Users/jason/code/react-sigma/node_modules/canvas: Command failed.\r\nExit code: 1\r\nCommand: sh\r\nArguments: -c node-gyp rebuild\r\nDirectory: /Users/jason/code/react-sigma/node_modules/canvas\r\nOutput:\r\ngyp info it worked if it ends with ok\r\ngyp info using node-gyp@3.5.0\r\ngyp info using node@7.6.0 | darwin | x64\r\ngyp info spawn /usr/local/bin/python2\r\ngyp info spawn args [ '/usr/local/Cellar/yarn/0.21.3/libexec/lib/node_modules/yarn/node_modules/node-gyp/gyp/gyp_main.py',\r\ngyp info spawn args   'binding.gyp',\r\ngyp info spawn args   '-f',\r\ngyp info spawn args   'make',\r\ngyp info spawn args   '-I',\r\ngyp info spawn args   '/Users/jason/code/react-sigma/node_modules/canvas/build/config.gypi',\r\ngyp info spawn args   '-I',\r\ngyp info spawn args   '/usr/local/Cellar/yarn/0.21.3/libexec/lib/node_modules/yarn/node_modules/node-gyp/addon.gypi',\r\ngyp info spawn args   '-I',\r\ngyp info spawn args   '/Users/jason/.node-gyp/7.6.0/include/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=/Users/jason/.node-gyp/7.6.0',\r\ngyp info spawn args   '-Dnode_gyp_dir=/usr/local/Cellar/yarn/0.21.3/libexec/lib/node_modules/yarn/node_modules/node-gyp',\r\ngyp info spawn args   '-Dnode_lib_file=node.lib',\r\ngyp info spawn args   '-Dmodule_root_dir=/Users/jason/code/react-sigma/node_modules/canvas',\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   'build',\r\ngyp info spawn args   '-Goutput_dir=.' ]\r\n./util/has_lib.sh: line 31: pkg-config: command not found\r\ngyp: Call to './util/has_lib.sh freetype' returned exit status 0 while in binding.gyp. while trying to load binding.gyp\r\ngyp ERR! configure error \r\ngyp ERR! stack Error: `gyp` failed with exit code: 1\r\ngyp ERR! stack     at ChildProcess.onCpExit (/usr/local/Cellar/yarn/0.21.3/libexec/lib/node_modules/yarn/node_modules/node-gyp/lib/configure.js:308:16)\r\ngyp ERR! stack     at emitTwo (events.js:106:13)\r\ngyp ERR! stack     at ChildProcess.emit (events.js:192:7)\r\ngyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)\r\ngyp ERR! System Darwin 16.4.0\r\ngyp ERR! command \"/usr/local/Cellar/node/7.6.0/bin/node\" \"/usr/local/Cellar/yarn/0.21.3/libexec/lib/node_modules/yarn/node_modules/node-gyp/bin/node-gyp.js\" \"rebuild\"\r\ngyp ERR! cwd /Users/jason/code/react-sigma/node_modules/canvas\r\ngyp ERR! node -v v7.6.0\r\ngyp ERR! node-gyp -v v3.5.0\r\ngyp ERR! not ok\r\ninfo Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.\r\n`"},"comment":{"url":"https://api.github.com/repos/dunnock/react-sigma/issues/comments/283651427","html_url":"https://github.com/dunnock/react-sigma/issues/21#issuecomment-283651427","issue_url":"https://api.github.com/repos/dunnock/react-sigma/issues/21","id":283651427,"user":{"login":"jstafford","id":525118,"avatar_url":"https://avatars2.githubusercontent.com/u/525118?v=3","gravatar_id":"","url":"https://api.github.com/users/jstafford","html_url":"https://github.com/jstafford","followers_url":"https://api.github.com/users/jstafford/followers","following_url":"https://api.github.com/users/jstafford/following{/other_user}","gists_url":"https://api.github.com/users/jstafford/gists{/gist_id}","starred_url":"https://api.github.com/users/jstafford/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jstafford/subscriptions","organizations_url":"https://api.github.com/users/jstafford/orgs","repos_url":"https://api.github.com/users/jstafford/repos","events_url":"https://api.github.com/users/jstafford/events{/privacy}","received_events_url":"https://api.github.com/users/jstafford/received_events","type":"User","site_admin":false},"created_at":"2017-03-02T13:20:41Z","updated_at":"2017-03-02T13:20:41Z","body":"Glad to help"}}
{"actor":{"display_login":"jstafford"}}