简体   繁体   English

Hyperledger的composer-cli安装期间发生错误

[英]Error During composer-cli installation for Hyperledger

I am trying to install composer-cli 0.20 but everytime I get this error 我正在尝试安装composer-cli 0.20,但每次遇到此错误

[..................] - fetchMetadata: sill fetchPackageMetaData error for sjcl@1.0.7 zlib: unexpected end of fil [..................]-fetchMetadata:sjcl@1.0.7的窗台fetchPackageMetaData错误zlib:fil意外结束

I am using VSCode on Windows 10, my node version is 11.6.0 and npm version is 6.5.0. 我在Windows 10上使用VSCode,我的节点版本是11.6.0,npm版本是6.5.0。 This is what the log file says: 这是日志文件说的:

386 verbose node v11.6.0 386详细节点v11.6.0

387 verbose npm v6.5.0 387详细npm v6.5.0

388 error code Z_BUF_ERROR 388错误代码Z_BUF_ERROR

389 error errno -5 389错误errno -5

390 error zlib: unexpected end of file 391 verbose exit [ -5, true ] 390错误zlib:意外结束文件391详细出口[-5,true]

Please Help. 请帮忙。

Irrespective of the issue you are experiencing, Hyperledger Composer is not supported on windows, nor is node 11 supported on any Hyperledger Composer supported platform, as node 8 is the only supported version of node. 无论遇到什么问题,Windows都不支持Hyperledger Composer,任何Hyperledger Composer支持的平台也不支持节点11,因为节点8是节点的唯一受支持的版本。 I recommend you use a hypervisor such as HyperV, VirtualBox or VMWare to load a supported version of linux for Hyerledger Composer. 我建议您使用系统管理程序(例如HyperV,VirtualBox或VMWare)为Hyerledger Composer加载受支持的linux版本。 see https://hyperledger.github.io/composer/latest/installing/installing-prereqs for more information about pre-reqs (note that ubuntu bionic 18.04 although not listed will work as well) 有关预要求的更多信息,请参见https://hyperledger.github.io/composer/latest/installing/installing-prereqs (请注意,虽然未列出,但ubuntu bionic 18.04也可以使用)

I've been running Composer on Windows 7 with VirtualBox and a few tweaks, so I don't think it is a problem. 我一直在Windows 7上使用VirtualBox运行Composer,并进行了一些调整,所以我认为这不是问题。 I think the problem is with the package you're installing. 我认为问题出在您要安装的软件包。 Try creating an empty project and adding sjcl@1.0.7. 尝试创建一个空项目并添加sjcl@1.0.7。 You can also use a package sniffer and check what's going on during the install. 您还可以使用软件包嗅探器并检查安装过程中发生了什么。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM