JavaScript nightmare.js not returning any output

I try to run my test.js file below with the command:

 DEBUG=nightmare node --harmony test.js 

and taking output:

 nightmare queueing action "goto" for http://google.com +0ms
 nightmare queueing action "wait" +2ms
 nightmare queueing action "screenshot" +0ms

test.js:

 var Nightmare = require('nightmare');

 var google = new Nightmare()
    .goto('http://google.com')
    .wait()
    .screenshot("./screen.png")
    .run(function(err, nightmare) {
        if (err) return console.log(err);
            console.log('Done!');
    });

No screenshot and link access. Is there any idea?

note: i am working on Virtual Box with Linux Guest.

Answer:1

I want to take every element of from the API and show it in different classes. I am getting the result in my Console but not on the page. Please Help me out. Thanks you in Advance:) . I have used ...

I want to take every element of from the API and show it in different classes. I am getting the result in my Console but not on the page. Please Help me out. Thanks you in Advance:) . I have used ...

I am trying to manipulate some float values inside of a string by a certain amount. To do so I have the following: var string = '<path d="M219.6,-71.4C249,19.1,212.7,130.9,135.7,186.8C58.8,242....

I am trying to manipulate some float values inside of a string by a certain amount. To do so I have the following: var string = '<path d="M219.6,-71.4C249,19.1,212.7,130.9,135.7,186.8C58.8,242....

I looking to post leads from my MSSQL database to a third party site. I've created a page that queries the database and inserts values into form fields so that I can manually press a submit button. ...

I looking to post leads from my MSSQL database to a third party site. I've created a page that queries the database and inserts values into form fields so that I can manually press a submit button. ...

I've got this Electron app (using NodeJS, Bootstrap, AngularJS) with some text input fields that can be edited. I have a button that triggers a window.alert() After it has been triggered, the text ...

I've got this Electron app (using NodeJS, Bootstrap, AngularJS) with some text input fields that can be edited. I have a button that triggers a window.alert() After it has been triggered, the text ...

  1. canvas
  2. canada
  3. cancelled
  4. canceled vs cancelled
  5. cancun
  6. canada goose
  7. cane corso
  8. canes
  9. canadian prime minister
  10. cancun flights
  11. canker sore
  12. candy
  13. cancer
  14. canon
  15. canvas prints
  16. cancer sign
  17. candace owens
  18. canada news
  19. candytopia
  20. canlis