IBM Blockchain平台无法重建本机依赖性

我试图使IBM Blockchain平台能够在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,--dist-url=https://atom.io/download/electron" return code 1. Please ensure 
that you have node and npm installed

我已经安装了节点和npm

node -v
v10.17.0

npm -v
6.11.3

满足约束条件。我有Visual Studio代码版本1.41.1。可能是什么问题?

SKYyang0782 回答:IBM Blockchain平台无法重建本机依赖性

此问题https://github.com/IBM-Blockchain/blockchain-vscode-extension/issues/1621

中描述了您遇到的问题

问题是结构节点sdk目前没有用于电子6的grpc的预构建版本,并且由于gcc的新版本中的更改,grpc节点模块无法使用源时无法编译,因为没有预建版本

最简单的解决方案是降级vscode 1.39并安装扩展。

其他选择是安装gcc版本7并使其成为Linux环境中的默认版本,或者您可以安装以gcc版本7作为默认版本的linux版本,例如ubuntu 18.04(这将允许grpc从源代码编译)

本文链接:https://www.f2er.com/2840287.html

大家都在问