我正在尝试为Visual Studio Code写一小段扩展,但是它在一开始就失败了。
我按预期安装了哟
npm install -g yo generator-code
但是,现在当我尝试启动所有内容时,会出现错误。
我使用yo code
并跟随生成器创建了一个项目。我尝试了Extension Typescript和Javascript,但都失败了。
使用的设置:
运行npm install为您安装所需的 依赖性。如果失败,请尝试自己运行命令。
自动安装失败,运行npm install
,但引起了相同的错误:
npm WARN registry Unexpected warning for https://registry.npmjs.org/: Miscellaneous Warning EPROTO: request to https://registry.npmjs.org/mocha failed, reason: write EPROTO 10300:error:14094417:SSL routines:ssl3_read_bytes:sslv3 alert illegal parameter:c:\\ws\\deps\\openssl\\openssl\\ssl\\record\\rec_layer_s3.c:1407:SSL alert number 47\n
npm WARN registry Using stale data from https://registry.npmjs.org/ due to a request error during revalidation.
npm ERR! code ETARGET
npm ERR! notarget No matching version found for @types/vscode@^1.43.0.
npm ERR! notarget In most cases you or one of your dependencies are requesting
npm ERR! notarget a package version that doesn't exist.
npm ERR! notarget
npm ERR! notarget It was specified as a dependency of 'smartfilesnfolders'
npm ERR! notarget
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\lechn\AppData\Roaming\npm-cache\_logs\2020-03-10T12_50_32_409Z-debug.log
完整日志:https://gist.github.com/lechnerio/e1356b2edb48cbdedf40fd1570267bb7
非常感谢您提供任何提示和技巧。 npm和vscode是最新的。
答案 0 :(得分:1)
我刚才有同样的错误。我通过在<Server Base URI>/meta.v1/Request
中将@types/vscode
版本更改为^1.42.0
来解决了这个问题。