'taskkill' error when close browser
See original GitHub issueSteps 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:
- Created 6 years ago
- Comments:10 (5 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Usually nobody checks closed issues, so if there’s no reaction, please open a new one.
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.