Visual studio code IBM区块链平台无法重建本机依赖项
我试图让IBM区块链平台在Visual studio代码中工作(在Linux上),但它不断返回:Visual studio code IBM区块链平台无法重建本机依赖项,visual-studio-code,ibm-blockchain,ibp-vscode-extension,Visual Studio Code,Ibm Blockchain,Ibp Vscode Extension,我试图让IBM区块链平台在Visual studio代码中工作(在Linux上),但它不断返回: Could not rebuild native dependencies Failed to execute command "npm" with arguments "rebuild, grpc, --target=6.1.5, --runtime=electron, --update-binary, --fallback-to-build, -- target_arch=x64, --d
Could not rebuild native dependencies Failed to execute command "npm" with arguments
"rebuild, grpc, --target=6.1.5, --runtime=electron, --update-binary, --fallback-to-build, --
target_arch=x64, --dist-url=https://atom.io/download/electron" return code 1. Please ensure
that you have node and npm installed
我已经安装了node和npm
node -v
v10.17.0
及
满足约束条件。我有visual studio代码版本1.41.1。这可能是什么问题?本期介绍了您遇到的问题 问题在于,electron 6的fabric node sdk目前没有使用任何预构建版本的grpc,并且由于gcc较新版本的更改,grpc节点模块在返回使用源代码时无法编译,因为没有预构建版本 最简单的解决方案是对vscode 1.39进行降级并安装扩展
其他选择是安装gcc版本7并在linux环境中设置为默认版本,或者您可以安装一个默认为gcc版本7的linux版本,例如ubuntu 18.04(这将允许grpc从源代码进行编译)当您从VSC的内置终端运行npm时会发生什么?
npm -v
6.11.3