{"action":"created","issue":{"url":"https://api.github.com/repos/yarnpkg/yarn/issues/2093","repository_url":"https://api.github.com/repos/yarnpkg/yarn","labels_url":"https://api.github.com/repos/yarnpkg/yarn/issues/2093/labels{/name}","comments_url":"https://api.github.com/repos/yarnpkg/yarn/issues/2093/comments","events_url":"https://api.github.com/repos/yarnpkg/yarn/issues/2093/events","html_url":"https://github.com/yarnpkg/yarn/issues/2093","id":192653621,"number":2093,"title":"Basic yarn install","user":{"login":"iamnathanwindsor","id":14031909,"avatar_url":"https://avatars.githubusercontent.com/u/14031909?v=3","gravatar_id":"","url":"https://api.github.com/users/iamnathanwindsor","html_url":"https://github.com/iamnathanwindsor","followers_url":"https://api.github.com/users/iamnathanwindsor/followers","following_url":"https://api.github.com/users/iamnathanwindsor/following{/other_user}","gists_url":"https://api.github.com/users/iamnathanwindsor/gists{/gist_id}","starred_url":"https://api.github.com/users/iamnathanwindsor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iamnathanwindsor/subscriptions","organizations_url":"https://api.github.com/users/iamnathanwindsor/orgs","repos_url":"https://api.github.com/users/iamnathanwindsor/repos","events_url":"https://api.github.com/users/iamnathanwindsor/events{/privacy}","received_events_url":"https://api.github.com/users/iamnathanwindsor/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-11-30T19:16:17Z","updated_at":"2016-11-30T19:51:42Z","closed_at":null,"body":"I'm working to install yarn in my $PATH on my mac OS X 10.11.5, but perhaps I didn't do it right?\r\n\r\n\r\nI did this:\r\n$ touch ~/.bash_profile; open ~/.bash_profile\r\n\r\nset my variables here to:\r\n# Setting PATH for Yarn\r\nexport PATH=\"$PATH:`yarn global bin`\"\r\n\r\n$ source ~/.bash_profile\r\n\r\nHere's my error message:\r\n\r\n$ yarn version\r\nyarn version v0.17.9\r\nerror Couldn't find a package.json file in \"/Users/nathan\"\r\ninfo Visit https://yarnpkg.com/en/docs/cli/version for documentation about this command.\r\n"},"comment":{"url":"https://api.github.com/repos/yarnpkg/yarn/issues/comments/263976302","html_url":"https://github.com/yarnpkg/yarn/issues/2093#issuecomment-263976302","issue_url":"https://api.github.com/repos/yarnpkg/yarn/issues/2093","id":263976302,"user":{"login":"davewasmer","id":707213,"avatar_url":"https://avatars.githubusercontent.com/u/707213?v=3","gravatar_id":"","url":"https://api.github.com/users/davewasmer","html_url":"https://github.com/davewasmer","followers_url":"https://api.github.com/users/davewasmer/followers","following_url":"https://api.github.com/users/davewasmer/following{/other_user}","gists_url":"https://api.github.com/users/davewasmer/gists{/gist_id}","starred_url":"https://api.github.com/users/davewasmer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davewasmer/subscriptions","organizations_url":"https://api.github.com/users/davewasmer/orgs","repos_url":"https://api.github.com/users/davewasmer/repos","events_url":"https://api.github.com/users/davewasmer/events{/privacy}","received_events_url":"https://api.github.com/users/davewasmer/received_events","type":"User","site_admin":false},"created_at":"2016-11-30T19:51:42Z","updated_at":"2016-11-30T19:51:42Z","body":"@iamnathanwindsor looks like it worked actually:\r\n\r\n```\r\n$ yarn version\r\nyarn version v0.17.9\r\n...\r\n```\r\n\r\nMeans that yarn was found. The issue here is that `yarn version` is different than `yarn --version`. The former is a command used to bump the version of the package you are currently in (a la `npm version`), and the latter prints the version of yarn you are using.\r\n\r\nSo you are seeing the error there because yarn thinks you are trying to bump the version of a package stored in `/Users/nathan`, but there's no `package.json` file in that directory."}}
{"actor":{"display_login":"davewasmer"}}