【ERORR未解决】npm ERR! request to https://registry.npmjs.org/composer-runtime-hlfv1 failed, reason: unab

尝试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 CloneElementAt(Local context,
                                    ^
/root/.node-gyp/8.11.3/include/node/v8config.h:318:3: note: in definition of macro 'V8_DEPRECATED'
   declarator __attribute__((deprecated(message)))
   ^
In file included from ../node_modules/nan/nan_new.h:189:0,
                 from ../node_modules/nan/nan.h:200,
                 from ../include/x509.h:7,
                 from ../src/addon.cc:5:
../node_modules/nan/nan_implementation_12_inl.h: In static member function 'static Nan::imp::FactoryBase::return_t Nan::imp::Factory::New(bool)':
../node_modules/nan/nan_implementation_12_inl.h:40:38: warning: 'static v8::Local v8::BooleanObject::New(bool)' is deprecated: Pass an isolate [-Wdeprecated-declarations]
   return v8::BooleanObject::New(value).As();
                                      ^
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:4845:56: note: declared here
   V8_DEPRECATED("Pass an isolate", static Local New(bool value));
                                                        ^
/root/.node-gyp/8.11.3/include/node/v8config.h:318:3: note: in definition of macro 'V8_DEPRECATED'
   declarator __attribute__((deprecated(message)))
   ^
In file included from ../include/x509.h:7:0,
                 from ../src/addon.cc:5:
../node_modules/nan/nan.h: In function 'bool Nan::SetAccessor(v8::Local, v8::Local, Nan::GetterCallback, Nan::SetterCallback, v8::Local, v8::AccessControl, v8::PropertyAttribute)':
../node_modules/nan/nan.h:1969:16: warning: 'bool v8::Object::SetAccessor(v8::Local, v8::AccessorNameGetterCallback, v8::AccessorNameSetterCallback, v8::Local, v8::AccessControl, v8::PropertyAttribute)' is deprecated: Use maybe version [-Wdeprecated-declarations]
     , attribute);
                ^
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:3187:22: note: declared here
                 bool SetAccessor(Local name,
                      ^
/root/.node-gyp/8.11.3/include/node/v8config.h:318:3: note: in definition of macro 'V8_DEPRECATED'
   declarator __attribute__((deprecated(message)))
   ^
  CXX(target) Release/obj.target/x509/src/x509.o
In file included from ../node_modules/nan/nan.h:194:0,
                 from ../include/x509.h:7,
                 from ../src/x509.cc:3:
../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 ../include/x509.h:5,
                 from ../src/x509.cc:3:
/root/.node-gyp/8.11.3/include/node/v8.h:3517:36: note: declared here
                 MaybeLocal CloneElementAt(Local context,
                                    ^
/root/.node-gyp/8.11.3/include/node/v8config.h:318:3: note: in definition of macro 'V8_DEPRECATED'
   declarator __attribute__((deprecated(message)))
   ^
In file included from ../node_modules/nan/nan_new.h:189:0,
                 from ../node_modules/nan/nan.h:200,
                 from ../include/x509.h:7,
                 from ../src/x509.cc:3:
../node_modules/nan/nan_implementation_12_inl.h: In static member function 'static Nan::imp::FactoryBase::return_t Nan::imp::Factory::New(bool)':
../node_modules/nan/nan_implementation_12_inl.h:40:38: warning: 'static v8::Local v8::BooleanObject::New(bool)' is deprecated: Pass an isolate [-Wdeprecated-declarations]
   return v8::BooleanObject::New(value).As();
                                      ^
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 ../include/x509.h:5,
                 from ../src/x509.cc:3:
/root/.node-gyp/8.11.3/include/node/v8.h:4845:56: note: declared here
   V8_DEPRECATED("Pass an isolate", static Local New(bool value));
                                                        ^
/root/.node-gyp/8.11.3/include/node/v8config.h:318:3: note: in definition of macro 'V8_DEPRECATED'
   declarator __attribute__((deprecated(message)))
   ^
In file included from ../include/x509.h:7:0,
                 from ../src/x509.cc:3:
../node_modules/nan/nan.h: In function 'bool Nan::SetAccessor(v8::Local, v8::Local, Nan::GetterCallback, Nan::SetterCallback, v8::Local, v8::AccessControl, v8::PropertyAttribute)':
../node_modules/nan/nan.h:1969:16: warning: 'bool v8::Object::SetAccessor(v8::Local, v8::AccessorNameGetterCallback, v8::AccessorNameSetterCallback, v8::Local, v8::AccessControl, v8::PropertyAttribute)' is deprecated: Use maybe version [-Wdeprecated-declarations]
     , attribute);
                ^
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 ../include/x509.h:5,
                 from ../src/x509.cc:3:
/root/.node-gyp/8.11.3/include/node/v8.h:3187:22: note: declared here
                 bool SetAccessor(Local name,
                      ^
/root/.node-gyp/8.11.3/include/node/v8config.h:318:3: note: in definition of macro 'V8_DEPRECATED'
   declarator __attribute__((deprecated(message)))
   ^
../src/x509.cc: In function 'v8::Local try_parse(const string&)':
../src/x509.cc:368:38: warning: value computed is not used [-Wunused-value]
     BIO_set_close(ext_bio, BIO_CLOSE);
                                      ^
../src/x509.cc: In function 'v8::Local parse_date(ASN1_TIME*)':
../src/x509.cc:433:60: warning: 'v8::Local v8::Object::CallAsConstructor(int, v8::Local*)' is deprecated: Use maybe version [-Wdeprecated-declarations]
   return scope.Escape(DateObject->CallAsConstructor(1, args));
                                                            ^
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 ../include/x509.h:5,
                 from ../src/x509.cc:3:
/root/.node-gyp/8.11.3/include/node/v8.h:3482:30: note: declared here
                 Local CallAsConstructor(int argc, Local argv[]));
                              ^
/root/.node-gyp/8.11.3/include/node/v8config.h:318:3: note: in definition of macro 'V8_DEPRECATED'
   declarator __attribute__((deprecated(message)))
   ^
  SOLINK_MODULE(target) Release/obj.target/x509.node
  COPY Release/x509.node
make: Leaving directory '/chaincode/output/node_modules/x509/build'

> [email protected] install /chaincode/output/node_modules/grpc
> node-pre-gyp install --fallback-to-build --library=static_library

"
Command failed

解决方案

你可能感兴趣的:(composer开发记录)