{"action":"created","issue":{"url":"https://api.github.com/repos/zeit/now-cli/issues/1783","repository_url":"https://api.github.com/repos/zeit/now-cli","labels_url":"https://api.github.com/repos/zeit/now-cli/issues/1783/labels{/name}","comments_url":"https://api.github.com/repos/zeit/now-cli/issues/1783/comments","events_url":"https://api.github.com/repos/zeit/now-cli/issues/1783/events","html_url":"https://github.com/zeit/now-cli/issues/1783","id":394861832,"node_id":"MDU6SXNzdWUzOTQ4NjE4MzI=","number":1783,"title":"error Couldn't find the binary git","user":{"login":"KudohAtsuo","id":39037965,"node_id":"MDQ6VXNlcjM5MDM3OTY1","avatar_url":"https://avatars3.githubusercontent.com/u/39037965?v=4","gravatar_id":"","url":"https://api.github.com/users/KudohAtsuo","html_url":"https://github.com/KudohAtsuo","followers_url":"https://api.github.com/users/KudohAtsuo/followers","following_url":"https://api.github.com/users/KudohAtsuo/following{/other_user}","gists_url":"https://api.github.com/users/KudohAtsuo/gists{/gist_id}","starred_url":"https://api.github.com/users/KudohAtsuo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KudohAtsuo/subscriptions","organizations_url":"https://api.github.com/users/KudohAtsuo/orgs","repos_url":"https://api.github.com/users/KudohAtsuo/repos","events_url":"https://api.github.com/users/KudohAtsuo/events{/privacy}","received_events_url":"https://api.github.com/users/KudohAtsuo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-12-30T10:32:04Z","updated_at":"2018-12-30T16:02:14Z","closed_at":null,"author_association":"NONE","body":"My NEXT app got this error when it is deployed onto Now server: \"Couldn't find the binary git\" after 'yarn install something...' according to error log.\r\nI followed the official Now-NEXT deployment configuration of custom server.js use case.\r\nhttps://zeit.co/docs/v2/deployments/official-builders/next-js-now-next/\r\nBelow is my now.json: \r\n```\r\n{\r\n  \"version\": 2,\r\n  \"builds\": [\r\n    { \"src\": \"next.config.js\", \"use\": \"@now/next\" }\r\n  ]\r\n}\r\n```\r\n\r\nAnd my next.config.js: \r\n\r\n`module.exports = () => ({})`\r\n\r\nAnd my npm scripts:\r\n```\r\n\"scripts\": {\r\n    \"dev\": \"node server.js\",\r\n    \"build\": \"next build\",\r\n    \"start\": \"NODE_ENV=production node server.js\"\r\n}\r\n```\r\nMy understanding for this error is 'You do not install git'. But my machine is Linux Ubuntu... \r\n\r\nAny help is appreciated. "},"comment":{"url":"https://api.github.com/repos/zeit/now-cli/issues/comments/450569916","html_url":"https://github.com/zeit/now-cli/issues/1783#issuecomment-450569916","issue_url":"https://api.github.com/repos/zeit/now-cli/issues/1783","id":450569916,"node_id":"MDEyOklzc3VlQ29tbWVudDQ1MDU2OTkxNg==","user":{"login":"themaufurtado","id":29791746,"node_id":"MDQ6VXNlcjI5NzkxNzQ2","avatar_url":"https://avatars2.githubusercontent.com/u/29791746?v=4","gravatar_id":"","url":"https://api.github.com/users/themaufurtado","html_url":"https://github.com/themaufurtado","followers_url":"https://api.github.com/users/themaufurtado/followers","following_url":"https://api.github.com/users/themaufurtado/following{/other_user}","gists_url":"https://api.github.com/users/themaufurtado/gists{/gist_id}","starred_url":"https://api.github.com/users/themaufurtado/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/themaufurtado/subscriptions","organizations_url":"https://api.github.com/users/themaufurtado/orgs","repos_url":"https://api.github.com/users/themaufurtado/repos","events_url":"https://api.github.com/users/themaufurtado/events{/privacy}","received_events_url":"https://api.github.com/users/themaufurtado/received_events","type":"User","site_admin":false},"created_at":"2018-12-30T16:02:14Z","updated_at":"2018-12-30T16:02:14Z","author_association":"NONE","body":"bro, i just figure it out! \r\nThe binary of git just means that que OS don't have git installed. My workaround was to using this \"gitlab:team/repository\", this format shouldn't trigger any errors. But, there is a extra step, you need install in your local environment,  and be sure that you are not ignoring the yarn.lock file in your .nowignore. \r\nAs I understood, the .lock file of your installations stores a different link to the git repository, this link points to do a zip file, therefore the server os Zeit will download the package from git, without using git. :)\r\n\r\nPS: Should work on any combination of git provider and package manager"}}
{"actor":{"display_login":"themaufurtado"}}