{"action":"created","issue":{"url":"https://api.github.com/repos/strongloop/loopback/issues/2053","repository_url":"https://api.github.com/repos/strongloop/loopback","labels_url":"https://api.github.com/repos/strongloop/loopback/issues/2053/labels{/name}","comments_url":"https://api.github.com/repos/strongloop/loopback/issues/2053/comments","events_url":"https://api.github.com/repos/strongloop/loopback/issues/2053/events","html_url":"https://github.com/strongloop/loopback/issues/2053","id":132235664,"number":2053,"title":"Config files deleted if there is a problem accessing package.json","user":{"login":"hq-mobile","id":12352644,"avatar_url":"https://avatars.githubusercontent.com/u/12352644?v=3","gravatar_id":"","url":"https://api.github.com/users/hq-mobile","html_url":"https://github.com/hq-mobile","followers_url":"https://api.github.com/users/hq-mobile/followers","following_url":"https://api.github.com/users/hq-mobile/following{/other_user}","gists_url":"https://api.github.com/users/hq-mobile/gists{/gist_id}","starred_url":"https://api.github.com/users/hq-mobile/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hq-mobile/subscriptions","organizations_url":"https://api.github.com/users/hq-mobile/orgs","repos_url":"https://api.github.com/users/hq-mobile/repos","events_url":"https://api.github.com/users/hq-mobile/events{/privacy}","received_events_url":"https://api.github.com/users/hq-mobile/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/strongloop/loopback/labels/triage","name":"triage","color":"eb6420"}],"state":"open","locked":false,"assignee":{"login":"jannyHou","id":12554153,"avatar_url":"https://avatars.githubusercontent.com/u/12554153?v=3","gravatar_id":"","url":"https://api.github.com/users/jannyHou","html_url":"https://github.com/jannyHou","followers_url":"https://api.github.com/users/jannyHou/followers","following_url":"https://api.github.com/users/jannyHou/following{/other_user}","gists_url":"https://api.github.com/users/jannyHou/gists{/gist_id}","starred_url":"https://api.github.com/users/jannyHou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jannyHou/subscriptions","organizations_url":"https://api.github.com/users/jannyHou/orgs","repos_url":"https://api.github.com/users/jannyHou/repos","events_url":"https://api.github.com/users/jannyHou/events{/privacy}","received_events_url":"https://api.github.com/users/jannyHou/received_events","type":"User","site_admin":false},"milestone":null,"comments":3,"created_at":"2016-02-08T19:29:03Z","updated_at":"2016-02-08T22:09:50Z","closed_at":null,"body":"Steps to reproduce:\r\n\r\n- Create a model structure (a single model with a single attribute will do)\r\n- run the following command to cause an access problem to packag.json:\r\n-- sudo chown -v root package.json\r\n- Attempt to do any model operation such as slc loopback:property\r\n- Follow the prompts to create a new property\r\n- Once all the prompts are completed an error will be output:\r\n```\r\nevents.js:141\r\n      throw er; // Unhandled 'error' event\r\n      ^\r\n\r\nError: EACCES: permission denied, open '/Users/Dan/projects/Bark-Wing-Duck/test/package.json'\r\n    at Error (native)\r\n```\r\n\r\nExpected:\r\n -config files to be left unchanged\r\n\r\nActual:\r\nAll -config files and -model.json files have had their contents deleted. "},"comment":{"url":"https://api.github.com/repos/strongloop/loopback/issues/comments/181590806","html_url":"https://github.com/strongloop/loopback/issues/2053#issuecomment-181590806","issue_url":"https://api.github.com/repos/strongloop/loopback/issues/2053","id":181590806,"user":{"login":"hq-mobile","id":12352644,"avatar_url":"https://avatars.githubusercontent.com/u/12352644?v=3","gravatar_id":"","url":"https://api.github.com/users/hq-mobile","html_url":"https://github.com/hq-mobile","followers_url":"https://api.github.com/users/hq-mobile/followers","following_url":"https://api.github.com/users/hq-mobile/following{/other_user}","gists_url":"https://api.github.com/users/hq-mobile/gists{/gist_id}","starred_url":"https://api.github.com/users/hq-mobile/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hq-mobile/subscriptions","organizations_url":"https://api.github.com/users/hq-mobile/orgs","repos_url":"https://api.github.com/users/hq-mobile/repos","events_url":"https://api.github.com/users/hq-mobile/events{/privacy}","received_events_url":"https://api.github.com/users/hq-mobile/received_events","type":"User","site_admin":false},"created_at":"2016-02-08T22:09:50Z","updated_at":"2016-02-08T22:09:50Z","body":"I'm sure you are aware but this seems to be the same as issue #2054. "}}