René's URL Explorer Experiment


Title: Fails to run on consecutive runs, Windows 11 24H2: "spawn wmic.exe ENOENT" / "Error: EBUSY: resource busy or locked ... BrowserStackLocal.exe" · Issue #166 · browserstack/browserstack-local-nodejs · GitHub

Open Graph Title: Fails to run on consecutive runs, Windows 11 24H2: "spawn wmic.exe ENOENT" / "Error: EBUSY: resource busy or locked ... BrowserStackLocal.exe" · Issue #166 · browserstack/browserstack-local-nodejs

X Title: Fails to run on consecutive runs, Windows 11 24H2: "spawn wmic.exe ENOENT" / "Error: EBUSY: resource busy or locked ... BrowserStackLocal.exe" · Issue #166 · browserstack/browserstack-local-nodejs

Description: The library ps-tree is used by browserstack-local-nodejs to start and exit the BrowserstackLocal process. However, new Windows 11 24H2 installations are missing wmic.exe, which ps-tree uses, and therefore the BrowserstackLocal keeps runn...

Open Graph Description: The library ps-tree is used by browserstack-local-nodejs to start and exit the BrowserstackLocal process. However, new Windows 11 24H2 installations are missing wmic.exe, which ps-tree uses, and th...

X Description: The library ps-tree is used by browserstack-local-nodejs to start and exit the BrowserstackLocal process. However, new Windows 11 24H2 installations are missing wmic.exe, which ps-tree uses, and th...

Opengraph URL: https://github.com/browserstack/browserstack-local-nodejs/issues/166

X: @github

direct link

Domain: patch-diff.githubusercontent.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Fails to run on consecutive runs, Windows 11 24H2: \"spawn wmic.exe ENOENT\" / \"Error: EBUSY: resource busy or locked ... BrowserStackLocal.exe\"","articleBody":"The library ps-tree is used by browserstack-local-nodejs to start and exit the BrowserstackLocal process. However, new Windows 11 24H2 installations are missing `wmic.exe`, which ps-tree uses, and therefore the BrowserstackLocal keeps running after the script finishes running. On the next run, browserstack-local-nodejs attempts to download/start a new BrowserstackLocal process and fails.\n\nThe first run of the npm command always ends with these lines, after the Selenium/Browserstack tests run successfully:\n\n```\n\u003e npm run sample-local-test\n...\n2025-10-09 12:16:55 - error: spawn wmic.exe ENOENT\n2025-10-09 12:16:55 - error: Cannot read properties of undefined (reading 'map')\n```\n\nWhen I start the same command again, the script will not run with these errors:\n\n```\n2025-10-09 12:17:37 - info: Project and debug logs are captured by default. To disable, set disableAutoCaptureLogs: true in config.\nDownloading in sync\nnode:events:486\n      throw er; // Unhandled 'error' event\n      ^\n\nError: EBUSY: resource busy or locked, open 'C:\\Users\\c\\.browserstack\\BrowserStackLocal.exe'\nEmitted 'error' event on WriteStream instance at:\n    at emitErrorNT (node:internal/streams/destroy:170:8)\n    at emitErrorCloseNT (node:internal/streams/destroy:129:3)\n    at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {\n  errno: -4082,\n  code: 'EBUSY',\n  syscall: 'open',\n  path: 'C:\\\\Users\\\\c\\\\.browserstack\\\\BrowserStackLocal.exe'\n}\n\nNode.js v24.9.0\n undefined\nRetrying Download. Retries left 9\n2025-10-09 12:17:37 - error: Error: LocalError: Couldn't find binary file\n    at BrowserStackSetup.setupBrowserstackLocal (C:\\data\\\\bs\\node_modules\\browserstack-node-sdk\\src\\helpers\\BrowserStackSetup.js:1:17704)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async BrowserStackSetup.initialize (C:\\data\\bs\\node_modules\\browserstack-node-sdk\\src\\helpers\\BrowserStackSetup.js:1:15053)\n    at async run (C:\\data\\bs\\node_modules\\browserstack-node-sdk\\src\\bin\\mocha\\command.js:2:21525)\n    at async captureError (C:\\data\\bs\\node_modules\\browserstack-node-sdk\\src\\bin\\runner.js:2:4268)\n(node:33796) [DEP0176] DeprecationWarning: fs.R_OK is deprecated, use fs.constants.R_OK instead\n(Use `node --trace-deprecation ...` to show where the warning was created)\n2025-10-09 12:17:37 - error: EPERM: operation not permitted, unlink 'C:\\Users\\c\\.browserstack\\BrowserStackLocal.exe'\n2025-10-09 12:17:37 - error: Size mismatch\n2025-10-09 12:17:37 - error: Size mismatch\n2025-10-09 12:17:37 - error: already finalized or destroyed\n```\n\nI have to exit BrowserStackLocal.exe in Task Manager before I can run my BrowserStack script again.\n\nI don't know if there is any other viable method to exit BrowserStackLocal.exe, or you could just allow it to keep running across sessions?\n\nRelevant issue at ps-tree: https://github.com/indexzero/ps-tree/issues/58\n\n\n","author":{"url":"https://github.com/chk1","@type":"Person","name":"chk1"},"datePublished":"2025-10-09T11:39:08.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/166/browserstack-local-nodejs/issues/166"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:7a556d3b-b476-040c-537a-bf3e285540c2
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id9C24:CF8F9:5D2068:7F9BFC:696F23CD
html-safe-nonced2d9eaaa414a18e5af3fd073bc13b85d1a089ade6bd1ad0f6a96ee3ce55c1d93
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5QzI0OkNGOEY5OjVEMjA2ODo3RjlCRkM6Njk2RjIzQ0QiLCJ2aXNpdG9yX2lkIjoiODY3MDI1NDAzODQzNzAxMjQyOSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacfde3def9dc507ecbeb6a68fb3a65c786aab57f68be390b93ea89ccf09507ed97
hovercard-subject-tagissue:3498800247
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/browserstack/browserstack-local-nodejs/166/issue_layout
twitter:imagehttps://opengraph.githubassets.com/0da4f64b1a16cfb686a15c0373c5ae596ad1687cdf5fc509a3d02fb7f5aa2b25/browserstack/browserstack-local-nodejs/issues/166
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/0da4f64b1a16cfb686a15c0373c5ae596ad1687cdf5fc509a3d02fb7f5aa2b25/browserstack/browserstack-local-nodejs/issues/166
og:image:altThe library ps-tree is used by browserstack-local-nodejs to start and exit the BrowserstackLocal process. However, new Windows 11 24H2 installations are missing wmic.exe, which ps-tree uses, and th...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamechk1
hostnamegithub.com
expected-hostnamegithub.com
Noneb278ad162d35332b6de714dfb005de04386c4d92df6475522bef910f491a35ee
turbo-cache-controlno-preview
go-importgithub.com/browserstack/browserstack-local-nodejs git https://github.com/browserstack/browserstack-local-nodejs.git
octolytics-dimension-user_id1119453
octolytics-dimension-user_loginbrowserstack
octolytics-dimension-repository_id51923223
octolytics-dimension-repository_nwobrowserstack/browserstack-local-nodejs
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id51923223
octolytics-dimension-repository_network_root_nwobrowserstack/browserstack-local-nodejs
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release39aed5006635ab6f45e6b77d23e73b08a00272a3
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://patch-diff.githubusercontent.com/browserstack/browserstack-local-nodejs/issues/166#start-of-content
https://patch-diff.githubusercontent.com/
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fbrowserstack%2Fbrowserstack-local-nodejs%2Fissues%2F166
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fbrowserstack%2Fbrowserstack-local-nodejs%2Fissues%2F166
Sign up https://patch-diff.githubusercontent.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=browserstack%2Fbrowserstack-local-nodejs
Reloadhttps://patch-diff.githubusercontent.com/browserstack/browserstack-local-nodejs/issues/166
Reloadhttps://patch-diff.githubusercontent.com/browserstack/browserstack-local-nodejs/issues/166
Reloadhttps://patch-diff.githubusercontent.com/browserstack/browserstack-local-nodejs/issues/166
browserstack https://patch-diff.githubusercontent.com/browserstack
browserstack-local-nodejshttps://patch-diff.githubusercontent.com/browserstack/browserstack-local-nodejs
Notifications https://patch-diff.githubusercontent.com/login?return_to=%2Fbrowserstack%2Fbrowserstack-local-nodejs
Fork 54 https://patch-diff.githubusercontent.com/login?return_to=%2Fbrowserstack%2Fbrowserstack-local-nodejs
Star 73 https://patch-diff.githubusercontent.com/login?return_to=%2Fbrowserstack%2Fbrowserstack-local-nodejs
Code https://patch-diff.githubusercontent.com/browserstack/browserstack-local-nodejs
Issues 26 https://patch-diff.githubusercontent.com/browserstack/browserstack-local-nodejs/issues
Pull requests 21 https://patch-diff.githubusercontent.com/browserstack/browserstack-local-nodejs/pulls
Actions https://patch-diff.githubusercontent.com/browserstack/browserstack-local-nodejs/actions
Projects 0 https://patch-diff.githubusercontent.com/browserstack/browserstack-local-nodejs/projects
Security Uh oh! There was an error while loading. Please reload this page. https://patch-diff.githubusercontent.com/browserstack/browserstack-local-nodejs/security
Please reload this pagehttps://patch-diff.githubusercontent.com/browserstack/browserstack-local-nodejs/issues/166
Insights https://patch-diff.githubusercontent.com/browserstack/browserstack-local-nodejs/pulse
Code https://patch-diff.githubusercontent.com/browserstack/browserstack-local-nodejs
Issues https://patch-diff.githubusercontent.com/browserstack/browserstack-local-nodejs/issues
Pull requests https://patch-diff.githubusercontent.com/browserstack/browserstack-local-nodejs/pulls
Actions https://patch-diff.githubusercontent.com/browserstack/browserstack-local-nodejs/actions
Projects https://patch-diff.githubusercontent.com/browserstack/browserstack-local-nodejs/projects
Security https://patch-diff.githubusercontent.com/browserstack/browserstack-local-nodejs/security
Insights https://patch-diff.githubusercontent.com/browserstack/browserstack-local-nodejs/pulse
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/browserstack/browserstack-local-nodejs/issues/166
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/browserstack/browserstack-local-nodejs/issues/166
Fails to run on consecutive runs, Windows 11 24H2: "spawn wmic.exe ENOENT" / "Error: EBUSY: resource busy or locked ... BrowserStackLocal.exe"https://patch-diff.githubusercontent.com/browserstack/browserstack-local-nodejs/issues/166#top
https://github.com/chk1
https://github.com/chk1
chk1https://github.com/chk1
on Oct 9, 2025https://github.com/browserstack/browserstack-local-nodejs/issues/166#issue-3498800247
indexzero/ps-tree#58https://github.com/indexzero/ps-tree/issues/58
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.