Visual Studio 代码扩展 - npm 安装因包依赖性而失败?
Visual Studio Code Extension - npm installation failed becuase of package dependency?
我正在尝试为 Visual Studio 代码编写一个小扩展,但一开始就失败了。
我按预期安装了哟
npm install -g yo generator-code
但是,现在当我尝试启动所有内容时,出现错误。
我使用 yo code
并跟随生成器创建了一个项目。我尝试了 Extension Typescript 和 Javascript,都失败了。
使用的设置:
- 初始化一个 git 存储库:是
- 包管理器:npm
Running npm install for you to install the required
dependencies. If this fails, try running the command yourself.
自动安装失败,运行 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\_logs20-03-10T12_50_32_409Z-debug.log
完整日志:https://gist.github.com/lechnerio/e1356b2edb48cbdedf40fd1570267bb7
感谢任何提示和提示。 npm 和 vscode 是最新的。
我刚才也遇到了同样的错误。我通过在 package.json
.
中将 @types/vscode
版本更改为 ^1.42.0
来解决它
我正在尝试为 Visual Studio 代码编写一个小扩展,但一开始就失败了。
我按预期安装了哟
npm install -g yo generator-code
但是,现在当我尝试启动所有内容时,出现错误。
我使用 yo code
并跟随生成器创建了一个项目。我尝试了 Extension Typescript 和 Javascript,都失败了。
使用的设置:
- 初始化一个 git 存储库:是
- 包管理器:npm
Running npm install for you to install the required dependencies. If this fails, try running the command yourself.
自动安装失败,运行 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\_logs20-03-10T12_50_32_409Z-debug.log
完整日志:https://gist.github.com/lechnerio/e1356b2edb48cbdedf40fd1570267bb7
感谢任何提示和提示。 npm 和 vscode 是最新的。
我刚才也遇到了同样的错误。我通过在 package.json
.
@types/vscode
版本更改为 ^1.42.0
来解决它