{"action":"created","issue":{"url":"https://api.github.com/repos/jas-/node-libnmap/issues/19","labels_url":"https://api.github.com/repos/jas-/node-libnmap/issues/19/labels{/name}","comments_url":"https://api.github.com/repos/jas-/node-libnmap/issues/19/comments","events_url":"https://api.github.com/repos/jas-/node-libnmap/issues/19/events","html_url":"https://github.com/jas-/node-libnmap/issues/19","id":103424493,"number":19,"title":"Multiple problems under MS Windows","user":{"login":"bwerst","id":10964207,"avatar_url":"https://avatars.githubusercontent.com/u/10964207?v=3","gravatar_id":"","url":"https://api.github.com/users/bwerst","html_url":"https://github.com/bwerst","followers_url":"https://api.github.com/users/bwerst/followers","following_url":"https://api.github.com/users/bwerst/following{/other_user}","gists_url":"https://api.github.com/users/bwerst/gists{/gist_id}","starred_url":"https://api.github.com/users/bwerst/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bwerst/subscriptions","organizations_url":"https://api.github.com/users/bwerst/orgs","repos_url":"https://api.github.com/users/bwerst/repos","events_url":"https://api.github.com/users/bwerst/events{/privacy}","received_events_url":"https://api.github.com/users/bwerst/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-08-27T04:15:47Z","updated_at":"2015-08-28T02:02:26Z","closed_at":null,"body":"Having several issues with node-libnmap.js running in a windows environment.\r\n\r\nnmap was installed via downloaded installer from nmap.org.  nmap is in the command line PATH.\r\n\r\nI could not get fs.exists(opts.nmap, function(exists) to work correctly around line 193.  Tried multiple settings for defaults.nmap.  Eventually gave up and commented out the body of the check: function(opts) {....\r\n\r\nRemoving the check function allowed discover() to work successfully.  Scan however is failing with null errors on the line if(host[1]) around line 559.  TypeError: Cannot read property '1' of null.\r\n\r\nlocal host was originally in my range array, but remembered reading that nmap on windows doesn't like localhost.  I think the null host value mentioned above is because it appears to be scanning the local workstation at its actual designated IP address.  I had similar error with localhost.\r\n\r\nUnfortunately, I still rate as a beginner at javascript so I'm having trouble modifying the code to add more preventative checks.\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/jas-/node-libnmap/issues/comments/135603624","html_url":"https://github.com/jas-/node-libnmap/issues/19#issuecomment-135603624","issue_url":"https://api.github.com/repos/jas-/node-libnmap/issues/19","id":135603624,"user":{"login":"jas-","id":422084,"avatar_url":"https://avatars.githubusercontent.com/u/422084?v=3","gravatar_id":"","url":"https://api.github.com/users/jas-","html_url":"https://github.com/jas-","followers_url":"https://api.github.com/users/jas-/followers","following_url":"https://api.github.com/users/jas-/following{/other_user}","gists_url":"https://api.github.com/users/jas-/gists{/gist_id}","starred_url":"https://api.github.com/users/jas-/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jas-/subscriptions","organizations_url":"https://api.github.com/users/jas-/orgs","repos_url":"https://api.github.com/users/jas-/repos","events_url":"https://api.github.com/users/jas-/events{/privacy}","received_events_url":"https://api.github.com/users/jas-/received_events","type":"User","site_admin":false},"created_at":"2015-08-28T02:02:26Z","updated_at":"2015-08-28T02:02:26Z","body":"Can you examine this [similar closed issue](https://github.com/jas-/node-libnmap/issues/8) to see if it will resolve your problem?"}}