我正在尝试开发SQLTools(用于DB连接的Visual Studio Code插件)存储库的新驱动程序:https://github.com/mtxr/vscode-sqltools
但是当我克隆此存储库并执行yarn来获得安装依赖项时,会得到以下结果:
yarn install v1.19.1
[1/5] Validating package.json...
warning sqltools@0.21.0: The engine "vscode" appears to be invalid.
[2/5] Resolving packages...
[3/5] Fetching packages...
info fsevents@1.2.9: The platform "win32" is incompatible with this module.
info "fsevents@1.2.9" is an optional dependency and failed compatibility check. Excluding it from installation.
warning workspace-aggregator-c9c8db11-ea2c-4058-8e87-789d0360a956@0.21.0: The engine "vscode" appears to be invalid.
warning @sqltools/extension@0.21.0: The engine "vscode" appears to be invalid.
warning @sqltools/plugins@0.21.0: The engine "vscode" appears to be invalid.
warning vscode-languageclient@5.2.1: The engine "vscode" appears to be invalid.
[4/5] Linking dependencies...
warning "workspace-aggregator-c9c8db11-ea2c-4058-8e87-789d0360a956 > @sqltools/extension > @babel/cli@7.5.5" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "workspace-aggregator-c9c8db11-ea2c-4058-8e87-789d0360a956 > @sqltools/extension > babel-loader@8.0.6" has unmet peer dependency "@babel/core@^7.0.0".
warning "workspace-aggregator-c9c8db11-ea2c-4058-8e87-789d0360a956 > @sqltools/ui > @devexpress/dx-react-grid@2.0.4" has unmet peer dependency "@devexpress/dx-core@2.0.4".
warning "workspace-aggregator-c9c8db11-ea2c-4058-8e87-789d0360a956 > @sqltools/ui > @devexpress/dx-react-grid-material-ui@2.0.4" has unmet peer dependency "@devexpress/dx-grid-core@2.0.4".
warning "workspace-aggregator-c9c8db11-ea2c-4058-8e87-789d0360a956 > @sqltools/ui > @devexpress/dx-react-grid > @devexpress/dx-grid-core@2.0.4" has unmet peer dependency "@devexpress/dx-core@2.0.4".
[5/5] Building fresh packages...
[-/3] ⠁ waiting...
[3/3] ⠁ @sqltools/extension
error C:\Pruebas\vscode-sqltools\node_modules\@sqltools\extension: Command failed.
Exit code: 1
Command: yarn run vscode-install
Arguments:
Directory: C:\Pruebas\vscode-sqltools\node_modules\@sqltools\extension
Output:
yarn run v1.19.1
warning @sqltools/extension@0.21.0: The engine "vscode" appears to be invalid.
$ C:\Pruebas\vscode-sqltools\node_modules\@sqltools\extension\node_modules\.bin\vscode-install
internal/modules/cjs/loader.js:797
throw err;
^
Error: Cannot find module 'C:\Pruebas\vscode-sqltools\node_modules\node_modules\vscode\bin\install'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:794:15)
at Function.Module._load (internal/modules/cjs/loader.js:687:27)
at Function.Module.runMain (internal/modules/cjs/loader.js:1025:10)
at internal/main/run_main_module.js:17:11 {
code: 'MODULE_NOT_FOUND',
requireStack: []
}
error Command failed with exit code 1.
我认为问题是路径。 C:\Pruebas\vscode-sqltools\node_modules\node_modules\
的文件确实在C:\Pruebas\vscode-sqltools\node_modules\
中(只有一个“ node_modules”),但是我不知道为什么要在此路径中搜索它。