Open ameyrkale opened 6 years ago
@ameyrkale is nmap available in $PATH?
I'm having the same issue. I'm running into this error on Cloud9, my windows machine, my mac and on AWS Lambda..... LMK if you figure it out :)
same here
@rcodina7 Linux distribution requires to have nmap, it's not anyhow related to the package.
I am using nmap on Onion Omega 2 Linux OS, I have installed nmap globally, when I use following program
const nmap = require('node-nmap'); nmap.nmapLocation = 'nmap'; //default let quickscan = new nmap.QuickScan('127.0.0.1 google.com'); console.log(quickscan);
it works but when I try to run NmapScan I am getting this error when I try running following program, "NMAP not found at command location: nmap"
var nmapscan = new nmap.NmapScan('127.0.0.1 google.com', '-sn');
nmapscan.on('complete',function(data){ console.log(data); }); nmapscan.on('error', function(error){ console.log(error); });
nmapscan.startScan();
Appreciate any help and inputs