{"action":"created","issue":{"url":"https://api.github.com/repos/jas-/node-libnmap/issues/5","labels_url":"https://api.github.com/repos/jas-/node-libnmap/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/jas-/node-libnmap/issues/5/comments","events_url":"https://api.github.com/repos/jas-/node-libnmap/issues/5/events","html_url":"https://github.com/jas-/node-libnmap/issues/5","id":51829904,"number":5,"title":"Can't use node-libnmap","user":{"login":"Gank","id":1524392,"avatar_url":"https://avatars.githubusercontent.com/u/1524392?v=3","gravatar_id":"","url":"https://api.github.com/users/Gank","html_url":"https://github.com/Gank","followers_url":"https://api.github.com/users/Gank/followers","following_url":"https://api.github.com/users/Gank/following{/other_user}","gists_url":"https://api.github.com/users/Gank/gists{/gist_id}","starred_url":"https://api.github.com/users/Gank/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Gank/subscriptions","organizations_url":"https://api.github.com/users/Gank/orgs","repos_url":"https://api.github.com/users/Gank/repos","events_url":"https://api.github.com/users/Gank/events{/privacy}","received_events_url":"https://api.github.com/users/Gank/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2014-12-12T17:15:14Z","updated_at":"2015-04-18T14:28:31Z","closed_at":"2015-03-17T03:35:44Z","body":"Using NodeJS v0.10.33 I'm getting problems running node-libnmap.\r\n\r\n\r\nAfter installing using,\r\n```\r\nnpm install node-libnmap\r\nnode-libnmap@0.1.12 node_modules/node-libnmap\r\n├── netmask@1.0.4\r\n├── async@0.2.10\r\n└── ipv6@3.1.1 (sprintf@0.1.5, cliff@0.1.10, cli@0.4.5)\r\n```\r\n\r\nAnd running this code,\r\n```\r\nconsole.log(require('libnmap').nmap())\r\n```\r\n\r\nI get,\r\n```\r\nmodule.js:340\r\n    throw err;\r\n          ^\r\nError: Cannot find module 'libnmap'\r\n    at Function.Module._resolveFilename (module.js:338:15)\r\n    at Function.Module._load (module.js:280:25)\r\n    at Module.require (module.js:364:17)\r\n    at require (module.js:380:17)\r\n    at Object.<anonymous> (/root/node_nmap.js:1:75)\r\n    at Module._compile (module.js:456:26)\r\n    at Object.Module._extensions..js (module.js:474:10)\r\n    at Module.load (module.js:356:32)\r\n    at Function.Module._load (module.js:312:12)\r\n    at Function.Module.runMain (module.js:497:10)\r\n```\r\n\r\n\r\nChanging it to code to\r\n```\r\nconsole.log(require('node-libnmap').nmap())\r\n```\r\n\r\nI runs but i get the following output:\r\n```\r\n{ name: 'node-libnmap',\r\n  version: 'v0.1.12',\r\n  usage: 'https://github.com/jas-/node-libnmap',\r\n  license: 'https://github.com/jas-/node-libnmap/blob/master/LICENSE',\r\n  issues: 'https://github.com/jas-/node-libnmap/issues',\r\n  nmap: { legal: 'http://nmap.org/book/man-legal.html' } }\r\n\r\n/root/node_modules/node-libnmap/lib/node-libnmap.js:192\r\n          throw new Error('The nmap binary was not found. Install nmap');\r\n                ^\r\nError: The nmap binary was not found. Install nmap\r\n    at /root/node_modules/node-libnmap/lib/node-libnmap.js:192:17\r\n    at Object.cb [as oncomplete] (fs.js:168:19)\r\n```\r\n\r\n\r\n\r\nI installed nmap\r\n```\r\nnmap --version\r\n\r\nNmap version 6.47 ( http://nmap.org )\r\nPlatform: x86_64-unknown-linux-gnu\r\nCompiled with: nmap-liblua-5.2.3 nmap-libpcre-7.6 libpcap-1.6.2 nmap-libdnet-1.12 ipv6\r\nCompiled without: openssl\r\nAvailable nsock engines: epoll poll select\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/jas-/node-libnmap/issues/comments/94168080","html_url":"https://github.com/jas-/node-libnmap/issues/5#issuecomment-94168080","issue_url":"https://api.github.com/repos/jas-/node-libnmap/issues/5","id":94168080,"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-04-18T14:28:31Z","updated_at":"2015-04-18T14:28:31Z","body":"@Galdooo this issue was closed. Open a new issue."}}