question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

'taskkill' error when close browser

See original GitHub issue

Steps to reproduce

I’m a new user of puppeteer, I started by testing the examples provided puppeteer/examples/.

I copied puppeteer/examples/screenshot.js and i run it with node screenshot.js

Tell us about your environment:

  • Puppeteer version: puppeteer@0.13.0
  • Platform / OS version: windows 64

What is the expected result?

The code create a screenshot and then close the app

What happens instead?

The screenshot is created but I have this error :

'taskkill' n'est pas reconnu en tant que commande interne
ou externe, un programme ex?cutable ou un fichier de commandes.
(node:38232) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 2): Error: Command failed: taskkill /pid 43932 /T /F
'taskkill' n'est pas reconnu en tant que commande interne
ou externe, un programme ex?cutable ou un fichier de commandes.

(node:38232) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

Can you help me fix this issue?

Thank you

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
thorn0commented, Aug 14, 2019

Usually nobody checks closed issues, so if there’s no reaction, please open a new one.

2reactions
irfaan008commented, Aug 14, 2019

To everyone who is struggling to run it on windows, I noticed that windows throws the error that “taskkill is not an internal or external command” only if you are running your node app from non windows command line application. So if you run your node app using GitBash or something similar you are prone to get this error.

So to make it work, just run your project using CMD or Powershell.

Read more comments on GitHub >

github_iconTop Results From Across the Web

taskkill application error 0xc0000142 - Microsoft Community
I recently started running into the error message: "Taskkill.exe - Application ... Click OK to close the application" This makes my laptop.
Read more >
Taskkill.exe: don't throw an error if the process is not running
START /wait taskkill /f /im w3wp.exe. It returns a success from the START command, and any error thrown by TASKKILL is thrown in...
Read more >
Taskkill /f doesn't kill a process - Stack Overflow
Right Click -> Close Session and the file lock was released. Beats me why I couldn't end the taks. The error message I...
Read more >
Force close a Program which Task Manager cannot terminate
Use Alt+F4 keyboard shortcut; Use Taskkill; Kill a Not Responding process using a Shortcut; Terminate ALL open applications instantly. 1] Use ...
Read more >
Please fix Error: No Connection to browser tab - Bug Reports
I use powershell with command "taskkill /F /IM chrome.exe /T " to kill all chrome tabs and then start ui vision, Chrome Pop...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found