简体   繁体   English

按照教程制作 helloworld vscode 扩展并获取缓冲区错误

[英]Follow tutorial to make a helloworld vscode extension and get buffer error

I followed the tutorial exactly at https://code.visualstudio.com/api/get-started/your-first-extension我完全按照教程https://code.visualstudio.com/api/get-started/your-first-extension

then i get然后我得到

(node:10929) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.

when I press F5 to build and run the helloworld extension当我按F5构建并运行 helloworld 扩展时

Seems most of the errors come from this bootstrap-fork.js似乎大部分错误都来自这个 bootstrap-fork.js

在此处输入图像描述

I don't know how to resolve.我不知道如何解决。

  • node is v17.0.1节点是 v17.0.1
  • npm is v8.0.1 npm是v8.0.1
  • vscode is as follows: vscode如下:
version: 1.62.3
Commit: ccbaa2d27e38e5afa3e5c21c1c7bef4657064247
Date: 2021-11-17T07:59:13.865Z (1 wk ago)
Electron: 13.5.2
Chrome: 91.0.4472.164
Node.js: 14.16.0
V8: 9.1.269.39-electron.0
OS: Darwin x64 20.6.0

How do I solve this issue?我该如何解决这个问题?

Ignore and carry on as per advised by the other commenters.忽略并按照其他评论者的建议继续。

Tested on monterey.在蒙特雷测试。 Same thing happened.同样的事情发生了。

Version: 1.63.2
Commit: 899d46d82c4c95423fb7e10e68eba52050e30ba3
Date: 2021-12-15T09:38:17.605Z
Electron: 13.5.2
Chromium: 91.0.4472.164
Node.js: 14.16.0
V8: 9.1.269.39-electron.0
OS: Darwin arm64 21.2.0

VS code version on monterey蒙特雷的 VS 代码版本

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM