You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

创建VS Code扩展时遭遇Buffer()弃用警告问题求助

VS Code扩展创建时的Buffer弃用警告问题

我正在尝试创建一个新的VS Code扩展,按照官方指南执行了以下命令完成初始化:

npm install --global yo generator-code
yo code

未对扩展做任何修改就运行时,出现了以下警告信息:

Checking whether to register object drop extension

Registering object drop provider

Registered object drop provider

(node:40106) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
(Use `Code Helper (Plugin) --trace-deprecation ...` to show where the warning was created)

我的环境信息:

  • 操作系统:Mac
  • Node.js版本:v20.3.0

内容的提问来源于stack exchange,提问作者gkpln3

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.01 00:20:55