{"action":"created","issue":{"url":"https://api.github.com/repos/ds300/postinstall-postinstall/issues/2","repository_url":"https://api.github.com/repos/ds300/postinstall-postinstall","labels_url":"https://api.github.com/repos/ds300/postinstall-postinstall/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/ds300/postinstall-postinstall/issues/2/comments","events_url":"https://api.github.com/repos/ds300/postinstall-postinstall/issues/2/events","html_url":"https://github.com/ds300/postinstall-postinstall/issues/2","id":371899359,"node_id":"MDU6SXNzdWUzNzE4OTkzNTk=","number":2,"title":"Package assumes install of npm (does not allow yarn instead)","user":{"login":"phantomjinx","id":1634180,"node_id":"MDQ6VXNlcjE2MzQxODA=","avatar_url":"https://avatars2.githubusercontent.com/u/1634180?v=4","gravatar_id":"","url":"https://api.github.com/users/phantomjinx","html_url":"https://github.com/phantomjinx","followers_url":"https://api.github.com/users/phantomjinx/followers","following_url":"https://api.github.com/users/phantomjinx/following{/other_user}","gists_url":"https://api.github.com/users/phantomjinx/gists{/gist_id}","starred_url":"https://api.github.com/users/phantomjinx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phantomjinx/subscriptions","organizations_url":"https://api.github.com/users/phantomjinx/orgs","repos_url":"https://api.github.com/users/phantomjinx/repos","events_url":"https://api.github.com/users/phantomjinx/events{/privacy}","received_events_url":"https://api.github.com/users/phantomjinx/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-10-19T10:29:41Z","updated_at":"2018-10-19T10:56:02Z","closed_at":"2018-10-19T10:56:02Z","author_association":"NONE","body":"Our project is using _yarn_ and as such our CircleCI builds do not even have _npm_ installed. Therefore, when installing and configuring [patch-package](https://github.com/ds300/patch-package), the build server errors even though patch-package is executed with --use-yarn.\r\n\r\n```[ERROR] Directory: /workspace/app/ui/node_modules/postinstall-postinstall\r\n[ERROR] Output:\r\n[ERROR] /bin/sh: 1: npm: not found\r\n[ERROR] child_process.js:644\r\n[ERROR]     throw err;\r\n[ERROR]     ^\r\n[ERROR] \r\n[ERROR] Error: Command failed: npm run prepare\r\n[ERROR] /bin/sh: 1: npm: not found\r\n[ERROR] \r\n[ERROR]     at checkExecSyncError (child_process.js:601:13)\r\n[ERROR]     at execSync (child_process.js:641:13)\r\n[ERROR]     at Object.<anonymous> (/workspace/app/ui/node_modules/postinstall-postinstall/run.js:14:5)\r\n[ERROR]     at Module._compile (module.js:652:30)\r\n[ERROR]     at Object.Module._extensions..js (module.js:663:10)\r\n[ERROR]     at Module.load (module.js:565:32)\r\n[ERROR]     at tryModuleLoad (module.js:505:12)\r\n[ERROR]     at Function.Module._load (module.js:497:3)\r\n[ERROR]     at Function.Module.runMain (module.js:693:10)\r\n[ERROR]     at startup (bootstrap_node.js:191:16)\r\n[INFO] ------------------------------------------------------------------------\r\n[INFO] BUILD FAILURE\r\n[INFO] ------------------------------------------------------------------------\r\n[INFO] Total time: 37.503 s\r\n[INFO] Finished at: 2018-10-18T15:43:04Z\r\n[INFO] Final Memory: 31M/102M\r\n```\r\nLooking at run.js, postinstall-postinstall (as well as postinstall-prepare) assume _npm_ but neither have facility for using _yarn_ instead."},"comment":{"url":"https://api.github.com/repos/ds300/postinstall-postinstall/issues/comments/431325272","html_url":"https://github.com/ds300/postinstall-postinstall/issues/2#issuecomment-431325272","issue_url":"https://api.github.com/repos/ds300/postinstall-postinstall/issues/2","id":431325272,"node_id":"MDEyOklzc3VlQ29tbWVudDQzMTMyNTI3Mg==","user":{"login":"ds300","id":1242537,"node_id":"MDQ6VXNlcjEyNDI1Mzc=","avatar_url":"https://avatars2.githubusercontent.com/u/1242537?v=4","gravatar_id":"","url":"https://api.github.com/users/ds300","html_url":"https://github.com/ds300","followers_url":"https://api.github.com/users/ds300/followers","following_url":"https://api.github.com/users/ds300/following{/other_user}","gists_url":"https://api.github.com/users/ds300/gists{/gist_id}","starred_url":"https://api.github.com/users/ds300/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ds300/subscriptions","organizations_url":"https://api.github.com/users/ds300/orgs","repos_url":"https://api.github.com/users/ds300/repos","events_url":"https://api.github.com/users/ds300/events{/privacy}","received_events_url":"https://api.github.com/users/ds300/received_events","type":"User","site_admin":false},"created_at":"2018-10-19T10:56:02Z","updated_at":"2018-10-19T10:56:02Z","author_association":"OWNER","body":"Oh yeah that makes sense. postinstall-postinstall should only be useful for yarn-based workflows anyway, so I just changed it to yarn and published `postinstall-postinstall@2.0.0`.\r\n\r\nThanks for the report!"}}
{"actor":{"display_login":"ds300"}}