{"action":"created","issue":{"url":"https://api.github.com/repos/FormidableLabs/builder/issues/30","labels_url":"https://api.github.com/repos/FormidableLabs/builder/issues/30/labels{/name}","comments_url":"https://api.github.com/repos/FormidableLabs/builder/issues/30/comments","events_url":"https://api.github.com/repos/FormidableLabs/builder/issues/30/events","html_url":"https://github.com/FormidableLabs/builder/issues/30","id":118731774,"number":30,"title":"BUG: on npm 2 `builder postinstall` fails if builder package includes another builder package","user":{"login":"boygirl","id":3719995,"avatar_url":"https://avatars.githubusercontent.com/u/3719995?v=3","gravatar_id":"","url":"https://api.github.com/users/boygirl","html_url":"https://github.com/boygirl","followers_url":"https://api.github.com/users/boygirl/followers","following_url":"https://api.github.com/users/boygirl/following{/other_user}","gists_url":"https://api.github.com/users/boygirl/gists{/gist_id}","starred_url":"https://api.github.com/users/boygirl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/boygirl/subscriptions","organizations_url":"https://api.github.com/users/boygirl/orgs","repos_url":"https://api.github.com/users/boygirl/repos","events_url":"https://api.github.com/users/boygirl/events{/privacy}","received_events_url":"https://api.github.com/users/boygirl/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-11-25T00:18:10Z","updated_at":"2015-11-25T21:55:47Z","closed_at":null,"body":"On repos like axis that are on builder infrastructure, `npm install` will fail on `builder postinstall` if these packages include other builder packages. \r\n\r\nfailing CI in this PR is an example:\r\nhttps://github.com/FormidableLabs/victory-axis/pull/40\r\n`victory-label` is using builder"},"comment":{"url":"https://api.github.com/repos/FormidableLabs/builder/issues/comments/159740336","html_url":"https://github.com/FormidableLabs/builder/issues/30#issuecomment-159740336","issue_url":"https://api.github.com/repos/FormidableLabs/builder/issues/30","id":159740336,"user":{"login":"ryan-roemer","id":445557,"avatar_url":"https://avatars.githubusercontent.com/u/445557?v=3","gravatar_id":"","url":"https://api.github.com/users/ryan-roemer","html_url":"https://github.com/ryan-roemer","followers_url":"https://api.github.com/users/ryan-roemer/followers","following_url":"https://api.github.com/users/ryan-roemer/following{/other_user}","gists_url":"https://api.github.com/users/ryan-roemer/gists{/gist_id}","starred_url":"https://api.github.com/users/ryan-roemer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ryan-roemer/subscriptions","organizations_url":"https://api.github.com/users/ryan-roemer/orgs","repos_url":"https://api.github.com/users/ryan-roemer/repos","events_url":"https://api.github.com/users/ryan-roemer/events{/privacy}","received_events_url":"https://api.github.com/users/ryan-roemer/received_events","type":"User","site_admin":false},"created_at":"2015-11-25T21:55:47Z","updated_at":"2015-11-25T21:55:47Z","body":"Confirmed. In clean directory on `npm v2` get:\r\n\r\n```\r\n$ npm install FormidableLabs/victory-axis#refactor-1of2\r\n \r\n> victory-label@0.1.2 postinstall /Users/rye/Desktop/TEMP_2/node_modules/victory-axis/node_modules/victory-label\r\n> builder run npm:postinstall\r\n\r\n\\\r\n/Users/rye/scm/fmd/builder/lib/config.js:95\r\n    throw new Error(\"Unable to find package.json for: \" + name);\r\n          ^\r\nError: Unable to find package.json for: builder-react-component\r\n    at Config._loadArchetypeScripts (/Users/rye/scm/fmd/builder/lib/config.js:95:11)\r\n    at null.<anonymous> (/Users/rye/scm/fmd/builder/lib/config.js:139:26)\r\n    at /Users/rye/scm/fmd/builder/node_modules/lodash/index.js:2874:23\r\n    at arrayMap (/Users/rye/scm/fmd/builder/node_modules/lodash/index.js:1406:25)\r\n    at map (/Users/rye/scm/fmd/builder/node_modules/lodash/index.js:6710:14)\r\n    at interceptor (/Users/rye/scm/fmd/builder/node_modules/lodash/index.js:12240:26)\r\n    at thru (/Users/rye/scm/fmd/builder/node_modules/lodash/index.js:5927:26)\r\n    at baseWrapperValue (/Users/rye/scm/fmd/builder/node_modules/lodash/index.js:2768:30)\r\n    at LazyWrapper.lazyValue [as value] (/Users/rye/scm/fmd/builder/node_modules/lodash/index.js:1077:16)\r\n    at baseWrapperValue (/Users/rye/scm/fmd/builder/node_modules/lodash/index.js:2761:25)\r\n```\r\n\r\nIt is likely a builder path issue, so let's keep this issue going and close the archetype one."}}