gpt4 book ai didi

visual-studio-code - @types/vscode ^x.xx 大于 engines.vscode ^x.xx

转载 作者:行者123 更新时间:2023-12-05 01:26:41 27 4
gpt4 key购买 nike

当我运行 vsce

vsce publish

我收到以下错误:

@types/vscode ^1.62.0 greater than engines.vscode ^1.48.0

Consider upgrade engines.vscode or use an older @types/vscode version

我的 package.json 中有以下依赖项:

"devDependencies": {
"@types/vscode": "^1.62.0",
"vsce": "^2.5.0"
}

如何更新 engines.vscode

相关:How do I update my vscode extension's engine requirement

最佳答案

根据 Visual Studio Code compatibility 上的发布文档部分

When authoring an extension, you will need to describe what is the extension's compatibility to Visual Studio Code itself. This can be done via the engines.vscode field inside package.json:

{
"engines": {
"vscode": "^1.62.0"
}
}

关于visual-studio-code - @types/vscode ^x.xx 大于 engines.vscode ^x.xx,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/70137470/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com