{"action":"opened","issue":{"url":"https://api.github.com/repos/tmpvar/jsdom/issues/1090","labels_url":"https://api.github.com/repos/tmpvar/jsdom/issues/1090/labels{/name}","comments_url":"https://api.github.com/repos/tmpvar/jsdom/issues/1090/comments","events_url":"https://api.github.com/repos/tmpvar/jsdom/issues/1090/events","html_url":"https://github.com/tmpvar/jsdom/issues/1090","id":69555557,"number":1090,"title":"Add { \"engines\" : { \"node\" : \"> 0.12\" } } to package.json for the 4.x branch","user":{"login":"DavidBruant","id":165829,"avatar_url":"https://avatars.githubusercontent.com/u/165829?v=3","gravatar_id":"","url":"https://api.github.com/users/DavidBruant","html_url":"https://github.com/DavidBruant","followers_url":"https://api.github.com/users/DavidBruant/followers","following_url":"https://api.github.com/users/DavidBruant/following{/other_user}","gists_url":"https://api.github.com/users/DavidBruant/gists{/gist_id}","starred_url":"https://api.github.com/users/DavidBruant/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DavidBruant/subscriptions","organizations_url":"https://api.github.com/users/DavidBruant/orgs","repos_url":"https://api.github.com/users/DavidBruant/repos","events_url":"https://api.github.com/users/DavidBruant/events{/privacy}","received_events_url":"https://api.github.com/users/DavidBruant/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-04-20T10:23:40Z","updated_at":"2015-04-20T10:23:40Z","closed_at":null,"body":"A colleague of mine (not a hardcore Node user) did `npm install jsdom --save` but he's using node 0.10, this resulted in hard-to-figure-out problems.\r\n\r\nI believe an \"engine\" field on package.json would have resulted in proper warnings (and he would have read the readme more thoroughly rather than wasting time debugging his own otherwise unbuggy code).\r\nI believe it will also help in cases where jsdom is a deep dependency.\r\n\r\nI think `{ \"engines\" : { \"node\" : \"> 0.12\" } }` is the most accurate thing to write for now to trigger warning on `npm install` for all node versions, but maybe not. This issue is more the beginning of a discussion."}}