René's URL Explorer Experiment


Title: fix: resolve DEP0190 deprecation warning on Windows by dengmik-commits · Pull Request #87 · lessweb/deepcode-cli · GitHub

Open Graph Title: fix: resolve DEP0190 deprecation warning on Windows by dengmik-commits · Pull Request #87 · lessweb/deepcode-cli

X Title: fix: resolve DEP0190 deprecation warning on Windows by dengmik-commits · Pull Request #87 · lessweb/deepcode-cli

Description: 问题 启动 deepcode 时出现 Node.js 废弃警告: (node:119316) [DEP0190] DeprecationWarning: Passing args to a child process with shell option true can lead to security vulnerabilities, as the arguments are not escaped, only concatenated. 根因 child_process.spawn() 在 shell: true 模式下不应该传入 args 数组——Node.js 只做简单拼接不转义,存在注入风险。v0.1.21 中 PR #77 修复 Windows CI 时引入了此回归:McpClient 和 updateCheck 共 3 处调用都传了 args 数组。 修复 将所有 spawn(cmd, args, { shell: true }) 改为 spawn([cmd, ...args].join(" "), [], { shell: true }),手动拼成字符串后传入。逻辑等价——cmd.exe 仍通过 PATHEXT 解析命令,不会触发 DEP0190,也不会有之前的 .cmd 后缀 bug。 改动文件 文件 改动 src/mcp/mcp-client.ts:141 McpClient.connect() 的 spawn 调用 src/updateCheck.ts:164 runNpmInstallGlobal() — npm 全局安装更新包 src/updateCheck.ts:208 npmViewVersion() — npm view 查询最新版本 updateCheck.ts 的两处在启动时同时触发警告是因为它们先于 MCP 初始化运行:deepcode 启动后立即检查更新和版本信息,这两个 spawn 在 npm 子命令前就触发了 DEP0190。用户看到的启动警告正是来自这里。 验证 npm run typecheck # ✅ 零错误 npm run bundle # ✅ dist/cli.js 启动 deepcode,不再出现 DEP0190 警告。 Closes #85

Open Graph Description: 问题 启动 deepcode 时出现 Node.js 废弃警告: (node:119316) [DEP0190] DeprecationWarning: Passing args to a child process with shell option true can lead to security vulnerabilities, as the arguments are not es...

X Description: 问题 启动 deepcode 时出现 Node.js 废弃警告: (node:119316) [DEP0190] DeprecationWarning: Passing args to a child process with shell option true can lead to security vulnerabilities, as the arguments are not es...

Opengraph URL: https://github.com/lessweb/deepcode-cli/pull/87

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:aa1696a3-3b4c-6b90-b3bd-12c00c5ac4e3
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idCB80:1EEE:2322F88:32A1884:6A4FD3D3
html-safe-nonce0f985810467d06c5a57febaa6f4061648dc9d20e3d9255795655f3ab144611ed
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQjgwOjFFRUU6MjMyMkY4ODozMkExODg0OjZBNEZEM0QzIiwidmlzaXRvcl9pZCI6IjYxMjAzMTA3MDMzMTgzNTY5NDciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac52608a4cba90206aac5897f28f8a72b76e2415fc87e60cd42c85a3696b06cae0
hovercard-subject-tagpull_request:3696193354
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/lessweb/deepcode-cli/pull/87/files
twitter:imagehttps://avatars.githubusercontent.com/u/270912164?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/270912164?s=400&v=4
og:image:alt问题 启动 deepcode 时出现 Node.js 废弃警告: (node:119316) [DEP0190] DeprecationWarning: Passing args to a child process with shell option true can lead to security vulnerabilities, as the arguments are not es...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None19b98c3d9767bb8a56238a89ff8401d1cbdf3bc5c353799aacf49fe6c76b4b7c
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/lessweb/deepcode-cli git https://github.com/lessweb/deepcode-cli.git
octolytics-dimension-user_id118287711
octolytics-dimension-user_loginlessweb
octolytics-dimension-repository_id1223512305
octolytics-dimension-repository_nwolessweb/deepcode-cli
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id1223512305
octolytics-dimension-repository_network_root_nwolessweb/deepcode-cli
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release142593e66413bbae27fd485859993597d5a3b104
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/lessweb/deepcode-cli/pull/87/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Flessweb%2Fdeepcode-cli%2Fpull%2F87%2Ffiles
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
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
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
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/enterprise/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://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Flessweb%2Fdeepcode-cli%2Fpull%2F87%2Ffiles
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=lessweb%2Fdeepcode-cli
Reloadhttps://github.com/lessweb/deepcode-cli/pull/87/files
Reloadhttps://github.com/lessweb/deepcode-cli/pull/87/files
Reloadhttps://github.com/lessweb/deepcode-cli/pull/87/files
Please reload this pagehttps://github.com/lessweb/deepcode-cli/pull/87/files
lessweb https://github.com/lessweb
deepcode-clihttps://github.com/lessweb/deepcode-cli
Notifications https://github.com/login?return_to=%2Flessweb%2Fdeepcode-cli
Fork 159 https://github.com/login?return_to=%2Flessweb%2Fdeepcode-cli
Star 1.8k https://github.com/login?return_to=%2Flessweb%2Fdeepcode-cli
Code https://github.com/lessweb/deepcode-cli
Issues 47 https://github.com/lessweb/deepcode-cli/issues
Pull requests 22 https://github.com/lessweb/deepcode-cli/pulls
Actions https://github.com/lessweb/deepcode-cli/actions
Projects https://github.com/lessweb/deepcode-cli/projects
Security and quality 0 https://github.com/lessweb/deepcode-cli/security
Insights https://github.com/lessweb/deepcode-cli/pulse
Code https://github.com/lessweb/deepcode-cli
Issues https://github.com/lessweb/deepcode-cli/issues
Pull requests https://github.com/lessweb/deepcode-cli/pulls
Actions https://github.com/lessweb/deepcode-cli/actions
Projects https://github.com/lessweb/deepcode-cli/projects
Security and quality https://github.com/lessweb/deepcode-cli/security
Insights https://github.com/lessweb/deepcode-cli/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Flessweb%2Fdeepcode-cli%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Flessweb%2Fdeepcode-cli%2Fissues%2Fnew%2Fchoose
dengmik-commitshttps://github.com/dengmik-commits
lessweb:mainhttps://github.com/lessweb/deepcode-cli/tree/main
dengmik-commits:fix/dep0190https://github.com/dengmik-commits/deepcode-cli/tree/fix/dep0190
Conversation 2 https://github.com/lessweb/deepcode-cli/pull/87
Commits 1 https://github.com/lessweb/deepcode-cli/pull/87/commits
Checks 9 https://github.com/lessweb/deepcode-cli/pull/87/checks
Files changed https://github.com/lessweb/deepcode-cli/pull/87/files
Please reload this pagehttps://github.com/lessweb/deepcode-cli/pull/87/files
fix: resolve DEP0190 deprecation warning on Windows https://github.com/lessweb/deepcode-cli/pull/87/files#top
Show all changes 1 commit https://github.com/lessweb/deepcode-cli/pull/87/files
b1b2a2a fix: resolve DEP0190 deprecation warning on Windows dengmik-commits May 17, 2026 https://github.com/lessweb/deepcode-cli/pull/87/commits/b1b2a2a0640585e8677943911f1b0d7036000091
Clear filters https://github.com/lessweb/deepcode-cli/pull/87/files
Please reload this pagehttps://github.com/lessweb/deepcode-cli/pull/87/files
Please reload this pagehttps://github.com/lessweb/deepcode-cli/pull/87/files
mcp-client.ts https://github.com/lessweb/deepcode-cli/pull/87/files#diff-629980a013434764d29c6eb5dc269c55468056f2e134ac78c04ac0b24fd0989d
updateCheck.ts https://github.com/lessweb/deepcode-cli/pull/87/files#diff-f3f851788cd5d0557ea11cb801ec945589ddbb97443f39dce87caeeb573ef207
src/mcp/mcp-client.tshttps://github.com/lessweb/deepcode-cli/pull/87/files#diff-629980a013434764d29c6eb5dc269c55468056f2e134ac78c04ac0b24fd0989d
View file https://github.com/dengmik-commits/deepcode-cli/blob/b1b2a2a0640585e8677943911f1b0d7036000091/src/mcp/mcp-client.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/lessweb/deepcode-cli/pull/87/{{ revealButtonHref }}
https://github.com/lessweb/deepcode-cli/pull/87/files#diff-629980a013434764d29c6eb5dc269c55468056f2e134ac78c04ac0b24fd0989d
https://github.com/lessweb/deepcode-cli/pull/87/files#diff-629980a013434764d29c6eb5dc269c55468056f2e134ac78c04ac0b24fd0989d
src/updateCheck.tshttps://github.com/lessweb/deepcode-cli/pull/87/files#diff-f3f851788cd5d0557ea11cb801ec945589ddbb97443f39dce87caeeb573ef207
View file https://github.com/dengmik-commits/deepcode-cli/blob/b1b2a2a0640585e8677943911f1b0d7036000091/src/updateCheck.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/lessweb/deepcode-cli/pull/87/{{ revealButtonHref }}
https://github.com/lessweb/deepcode-cli/pull/87/files#diff-f3f851788cd5d0557ea11cb801ec945589ddbb97443f39dce87caeeb573ef207
https://github.com/lessweb/deepcode-cli/pull/87/files#diff-f3f851788cd5d0557ea11cb801ec945589ddbb97443f39dce87caeeb573ef207
https://github.com/lessweb/deepcode-cli/pull/87/files#diff-f3f851788cd5d0557ea11cb801ec945589ddbb97443f39dce87caeeb573ef207
https://github.com/lessweb/deepcode-cli/pull/87/files#diff-f3f851788cd5d0557ea11cb801ec945589ddbb97443f39dce87caeeb573ef207
Please reload this pagehttps://github.com/lessweb/deepcode-cli/pull/87/files
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.