尝试js开发遇到问题,开了一个v2版本的换了一些东西准备跑一下试试看,遇到错误。
它尝试启动一个ccenv但是没有启动成功。
(改动的地方是把类的引用改为了id的引用,因为类的引用接口不是很明白该咋写。)
然后报错,错误信息如下:
cielo@cielo-ThinkPad-E550:~/cprogrames/csupplychainv2/dist$ composer network start -n csupplychainv2 -c PeerAdmin@hlfv1 -V 0.0.1 -A admin -S adminpw
Starting business network csupplychainv2 at version 0.0.1
Processing these Network Admins:
userName: admin
✖ Starting business network definition. This may take a minute...
Error: Error trying to start business network. Error: No valid responses from any peers.
Response from attempted peer comms was an error: Error: failed to execute transaction e68bffefeba3f8b1a16f1f9ee8e5b252910f4585d9202692f268b09401abdba8: error starting container: error starting container: Failed to generate platform-specific docker build: Error returned from build: 1 "npm ERR! code UNABLE_TO_VERIFY_LEAF_SIGNATURE
npm ERR! errno UNABLE_TO_VERIFY_LEAF_SIGNATURE
npm ERR! request to https://registry.npmjs.org/composer-runtime-hlfv1 failed, reason: unable to verify the first certificate
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2019-05-02T13_47_45_416Z-debug.log
"
Command failed
清空所有东西重新搞一遍,还是有错误:
cielo@cielo-ThinkPad-E550:~/cprogrames/csupplychainv2/dist$ composer network start -n csupplychainv2 -c PeerAdmin@hlfv1 -V 0.0.2 -A admin -S adminpw
Starting business network csupplychainv2 at version 0.0.2
Processing these Network Admins:
userName: admin
✖ Starting business network definition. This may take a minute...
Error: Error trying to start business network. Error: No valid responses from any peers.
Response from attempted peer comms was an error: Error: failed to execute transaction a58d6a257c5a29e8672b430d35ecdd0f3d1f8f5f5b1cefc4116435c644fe7388: error starting container: error starting container: Failed to generate platform-specific docker build: Error returned from build: 137 "npm WARN deprecated [email protected]: This module moved to @hapi/hawk. Please make sure to switch over as this distribution is no longer supported and may contain bugs and critical security issues.
npm WARN notice [SECURITY] hoek has the following vulnerability: 1 moderate. Go here for more details: https://nodesecurity.io/advisories?search=hoek&version=2.16.3 - Run `npm i npm@latest -g` to upgrade your npm version, and then `npm audit` to get more info.
npm WARN deprecated [email protected]: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial).
npm WARN deprecated [email protected]: This module moved to @hapi/sntp. Please make sure to switch over as this distribution is no longer supported and may contain bugs and critical security issues.
npm WARN deprecated [email protected]: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial).
npm WARN deprecated [email protected]: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial).
npm WARN deprecated [email protected]: core-js@<2.6.5 is no longer maintained. Please, upgrade to core-js@3 or at least to actual version of core-js@2.
npm WARN deprecated [email protected]: This module moved to @hapi/hawk. Please make sure to switch over as this distribution is no longer supported and may contain bugs and critical security issues.
npm WARN deprecated [email protected]: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial).
npm WARN deprecated [email protected]: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial).
npm WARN deprecated [email protected]: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial).
npm WARN deprecated [email protected]: This module moved to @hapi/sntp. Please make sure to switch over as this distribution is no longer supported and may contain bugs and critical security issues.
npm WARN deprecated [email protected]: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial).
> [email protected] install /chaincode/output/node_modules/x509
> node-gyp rebuild
make: Entering directory '/chaincode/output/node_modules/x509/build'
CXX(target) Release/obj.target/x509/src/addon.o
In file included from ../node_modules/nan/nan.h:194:0,
from ../include/x509.h:7,
from ../src/addon.cc:5:
../node_modules/nan/nan_maybe_43_inl.h: In function 'Nan::MaybeLocal Nan::CloneElementAt(v8::Local, uint32_t)':
../node_modules/nan/nan_maybe_43_inl.h:220:58: warning: 'v8::MaybeLocal v8::Array::CloneElementAt(v8::Local, uint32_t)' is deprecated: Cloning is not supported. [-Wdeprecated-declarations]
return array->CloneElementAt(GetCurrentContext(), index);
^
In file included from /root/.node-gyp/8.11.3/include/node/v8.h:26:0,
from /root/.node-gyp/8.11.3/include/node/node.h:63,
from ../include/addon.h:4,
from ../src/addon.cc:4:
/root/.node-gyp/8.11.3/include/node/v8.h:3517:36: note: declared here
MaybeLocal