Visual Studio代码扩展-npm安装因包依赖关系而失败?
我正试图为VisualStudio代码编写一个小的扩展,但一开始就失败了 我按计划安装了yoVisual Studio代码扩展-npm安装因包依赖关系而失败?,npm,visual-studio-code,npm-install,Npm,Visual Studio Code,Npm Install,我正试图为VisualStudio代码编写一个小的扩展,但一开始就失败了 我按计划安装了yo npm安装-g yo发电机代码 然而,现在当我尝试启动所有东西时,我会出错 我使用yocode并遵循生成器创建了一个项目。我尝试了扩展Typescript和Javascript,但都失败了 使用的设置包括: 初始化git存储库:是 软件包经理:npm 运行npm install以安装所需的 依赖关系。如果失败,请尝试自己运行该命令 自动安装失败,运行npm install,但导致相同错误: npm
npm安装-g yo发电机代码
然而,现在当我尝试启动所有东西时,我会出错
我使用yocode
并遵循生成器创建了一个项目。我尝试了扩展Typescript和Javascript,但都失败了
使用的设置包括:
- 初始化git存储库:是
- 软件包经理:npm
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
完整日志:
感谢您的提示和提示。npm和vscode是最新的。我刚才也有同样的错误。我通过在
package.json
中将@types/vscode
版本更改为^1.42.0
解决了这个问题,非常感谢您的支持。工作没有问题。