当我创建VSCODE扩展时,如何解决此错误
npm warn retected
npm warn retected [email  procation;在某些情况下,较旧版本可以使用Math.random(),这是有问题的。参见 https://v8.dev/blog/math-random 有关详细信息。
npm警告已弃用 https://github.com/request/request/request/request/request/reissues/3142
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这些消息都不是错误,但是警告,您可能无法修复它们。这取决于从何处导入的位置。如果您对它们有依赖性,则可以轻松地使用以后的版本,而这些问题已解决。但是,他们更有可能是第四方依赖性,这需要获得您的第三方依赖项的较新版本(如果有的话),希望能够链接到第四方DEP的较新版本。
另一个可能的解决方案是在您的软件包中添加自己的(第三方)依赖性。它们会自动由NPM涂来,但可能会因使用它们的第三个库带来麻烦。
因此,如果您不确定该怎么做,您可以暂时忽略警告,并保持第三方列表的依赖项更新,希望这些LIB迟早会更新以使用更新的第四党LIB。
None of the messages are errors, but warnings and you will probably not be able to fix them. It depends on where the mentioned modules are imported from. If you have dependencies to them, you can easily use a later version, with those problems fixed. But more likely they are 4th party dependencies, which would require to get a newer version of your 3rd party dependencies (if there's any) that hopefully links to newer version of the 4th party deps.
Another possible solution is to add an own (3rd party) dependency in your package.json to newer versions of these libraries. They are automatically deduped by NPM, but might cause trouble with the 3rd libraries that use them.
So, if you are unsure what to do, you can ignore the warnings for now and keep your 3rd party list dependencies updated, in the hope that those libs sooner or later are updated to use a newer 4th party lib.