Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

i is not defined #15

Open
zachjonesnoel opened this issue Aug 14, 2021 · 2 comments
Open

i is not defined #15

zachjonesnoel opened this issue Aug 14, 2021 · 2 comments

Comments

@zachjonesnoel
Copy link

When running sample snippet to trace route www.google.com

traceroute = require('traceroute');
traceroute.trace('google.com', function (err,hops) {
  if (!err) console.log(hops);
});

Getting this error.

\node_modules\traceroute\traceroute.js:114
        lines.splice(0,i);
                       ^

ReferenceError: i is not defined
    at Object.internals.parseOutput (..\node_modules\traceroute\traceroute.js:114:24)
    at ..\node_modules\traceroute\traceroute.js:35:39
    at ChildProcess.exithandler (child_process.js:299:7)
    at ChildProcess.emit (events.js:315:20)
    at ChildProcess.EventEmitter.emit (domain.js:467:12)
    at maybeClose (internal/child_process.js:1048:16)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:288:5)
@jaw187
Copy link
Owner

jaw187 commented Aug 18, 2021

what version was this with?

@zachjonesnoel
Copy link
Author

Version : "^1.0.0"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants