{"action":"created","issue":{"url":"https://api.github.com/repos/aws-amplify/amplify-js/issues/2437","repository_url":"https://api.github.com/repos/aws-amplify/amplify-js","labels_url":"https://api.github.com/repos/aws-amplify/amplify-js/issues/2437/labels{/name}","comments_url":"https://api.github.com/repos/aws-amplify/amplify-js/issues/2437/comments","events_url":"https://api.github.com/repos/aws-amplify/amplify-js/issues/2437/events","html_url":"https://github.com/aws-amplify/amplify-js/issues/2437","id":395097325,"node_id":"MDU6SXNzdWUzOTUwOTczMjU=","number":2437,"title":"publish fails ","user":{"login":"bsapiro","id":819824,"node_id":"MDQ6VXNlcjgxOTgyNA==","avatar_url":"https://avatars3.githubusercontent.com/u/819824?v=4","gravatar_id":"","url":"https://api.github.com/users/bsapiro","html_url":"https://github.com/bsapiro","followers_url":"https://api.github.com/users/bsapiro/followers","following_url":"https://api.github.com/users/bsapiro/following{/other_user}","gists_url":"https://api.github.com/users/bsapiro/gists{/gist_id}","starred_url":"https://api.github.com/users/bsapiro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bsapiro/subscriptions","organizations_url":"https://api.github.com/users/bsapiro/orgs","repos_url":"https://api.github.com/users/bsapiro/repos","events_url":"https://api.github.com/users/bsapiro/events{/privacy}","received_events_url":"https://api.github.com/users/bsapiro/received_events","type":"User","site_admin":false},"labels":[{"id":880284979,"node_id":"MDU6TGFiZWw4ODAyODQ5Nzk=","url":"https://api.github.com/repos/aws-amplify/amplify-js/labels/CLI","name":"CLI","color":"f9d0c4","default":false}],"state":"open","locked":false,"assignee":{"login":"UnleashedMind","id":6025263,"node_id":"MDQ6VXNlcjYwMjUyNjM=","avatar_url":"https://avatars2.githubusercontent.com/u/6025263?v=4","gravatar_id":"","url":"https://api.github.com/users/UnleashedMind","html_url":"https://github.com/UnleashedMind","followers_url":"https://api.github.com/users/UnleashedMind/followers","following_url":"https://api.github.com/users/UnleashedMind/following{/other_user}","gists_url":"https://api.github.com/users/UnleashedMind/gists{/gist_id}","starred_url":"https://api.github.com/users/UnleashedMind/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/UnleashedMind/subscriptions","organizations_url":"https://api.github.com/users/UnleashedMind/orgs","repos_url":"https://api.github.com/users/UnleashedMind/repos","events_url":"https://api.github.com/users/UnleashedMind/events{/privacy}","received_events_url":"https://api.github.com/users/UnleashedMind/received_events","type":"User","site_admin":false},"assignees":[{"login":"UnleashedMind","id":6025263,"node_id":"MDQ6VXNlcjYwMjUyNjM=","avatar_url":"https://avatars2.githubusercontent.com/u/6025263?v=4","gravatar_id":"","url":"https://api.github.com/users/UnleashedMind","html_url":"https://github.com/UnleashedMind","followers_url":"https://api.github.com/users/UnleashedMind/followers","following_url":"https://api.github.com/users/UnleashedMind/following{/other_user}","gists_url":"https://api.github.com/users/UnleashedMind/gists{/gist_id}","starred_url":"https://api.github.com/users/UnleashedMind/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/UnleashedMind/subscriptions","organizations_url":"https://api.github.com/users/UnleashedMind/orgs","repos_url":"https://api.github.com/users/UnleashedMind/repos","events_url":"https://api.github.com/users/UnleashedMind/events{/privacy}","received_events_url":"https://api.github.com/users/UnleashedMind/received_events","type":"User","site_admin":false},{"login":"kaustavghosh06","id":7247658,"node_id":"MDQ6VXNlcjcyNDc2NTg=","avatar_url":"https://avatars0.githubusercontent.com/u/7247658?v=4","gravatar_id":"","url":"https://api.github.com/users/kaustavghosh06","html_url":"https://github.com/kaustavghosh06","followers_url":"https://api.github.com/users/kaustavghosh06/followers","following_url":"https://api.github.com/users/kaustavghosh06/following{/other_user}","gists_url":"https://api.github.com/users/kaustavghosh06/gists{/gist_id}","starred_url":"https://api.github.com/users/kaustavghosh06/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kaustavghosh06/subscriptions","organizations_url":"https://api.github.com/users/kaustavghosh06/orgs","repos_url":"https://api.github.com/users/kaustavghosh06/repos","events_url":"https://api.github.com/users/kaustavghosh06/events{/privacy}","received_events_url":"https://api.github.com/users/kaustavghosh06/received_events","type":"User","site_admin":false}],"milestone":null,"comments":2,"created_at":"2019-01-01T16:50:37Z","updated_at":"2019-01-02T18:15:52Z","closed_at":null,"author_association":"NONE","body":"when running `amplify publish` I get (note that `amplify push` completes properly). I confirmed that package.json does not exist.\r\n\r\nnpm ERR! path /Users/ben/Documents/Code/amplify/test/package.json\r\nnpm ERR! code ENOENT\r\nnpm ERR! errno -2\r\nnpm ERR! syscall open\r\nnpm ERR! enoent ENOENT: no such file or directory, open '/Users/ben/Documents/Code/amplify/test/package.json'\r\nnpm ERR! enoent This is related to npm not being able to find a file.\r\nnpm ERR! enoent \r\n\r\nnpm ERR! A complete log of this run can be found in:\r\nnpm ERR!     /Users/ben/.npm/_logs/2019-01-01T16_32_51_970Z-debug.log\r\nfrontend build command exited with code 254\r\n2019-01-01T16:32:51.987Z - error: uncaughtException: 254 date=Tue Jan 01 2019 11:32:51 GMT-0500 (Eastern Standard Time), pid=42559, uid=501, gid=20, cwd=/Users/ben/Documents/Code/amplify/test, execPath=/usr/local/bin/node, version=v11.6.0, argv=[/usr/local/bin/node, /usr/local/bin/amplify, publish], rss=175411200, heapTotal=99405824, heapUsed=54349128, external=786146, loadavg=[2.5400390625, 2.57373046875, 2.5263671875], uptime=2163221, trace=[], stack=undefined\r\n\r\n-----\r\n\r\nlog file and project file attached (project deleted from cloud)\r\n[2019-01-01T16_32_51_970Z-debug.log](https://github.com/aws-amplify/amplify-js/files/2719474/2019-01-01T16_32_51_970Z-debug.log)\r\n[test.zip](https://github.com/aws-amplify/amplify-js/files/2719475/test.zip)\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/aws-amplify/amplify-js/issues/comments/450939720","html_url":"https://github.com/aws-amplify/amplify-js/issues/2437#issuecomment-450939720","issue_url":"https://api.github.com/repos/aws-amplify/amplify-js/issues/2437","id":450939720,"node_id":"MDEyOklzc3VlQ29tbWVudDQ1MDkzOTcyMA==","user":{"login":"kaustavghosh06","id":7247658,"node_id":"MDQ6VXNlcjcyNDc2NTg=","avatar_url":"https://avatars0.githubusercontent.com/u/7247658?v=4","gravatar_id":"","url":"https://api.github.com/users/kaustavghosh06","html_url":"https://github.com/kaustavghosh06","followers_url":"https://api.github.com/users/kaustavghosh06/followers","following_url":"https://api.github.com/users/kaustavghosh06/following{/other_user}","gists_url":"https://api.github.com/users/kaustavghosh06/gists{/gist_id}","starred_url":"https://api.github.com/users/kaustavghosh06/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kaustavghosh06/subscriptions","organizations_url":"https://api.github.com/users/kaustavghosh06/orgs","repos_url":"https://api.github.com/users/kaustavghosh06/repos","events_url":"https://api.github.com/users/kaustavghosh06/events{/privacy}","received_events_url":"https://api.github.com/users/kaustavghosh06/received_events","type":"User","site_admin":false},"created_at":"2019-01-02T18:15:52Z","updated_at":"2019-01-02T18:15:52Z","author_association":"CONTRIBUTOR","body":"@bsapiro Tried looking at your test project but couldn't find any frontend code for the same (or a correspoding package.json file). \r\nYou've selected \"Vue\" as your framework and have specified \"npm run-script build\" as your build command. The first step in the `amplify publish` is to build your frontend code using the build command specified by you during the init step. \r\nFrom the error logs it looks like you don't have a package.json file for your vue project specifying what the build command should do."}}
{"actor":{"display_login":"kaustavghosh06"}}