当前位置: 代码迷 >> 综合 >> 【ERORR未解决】npm ERR! request to https://registry.npmjs.org/composer-runtime-hlfv1 failed, reason: unab
  详细解决方案

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

热度:85   发布时间:2023-12-29 06:45:48.0

尝试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.1Processing 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 certificatenpm 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.2Processing 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 hawk@3.1.3: 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 hoek@2.16.3: 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 sntp@1.0.9: 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 cryptiles@2.0.5: 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 boom@2.10.1: 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 core-js@2.3.0: 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 hawk@6.0.2: 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 hoek@4.2.1: 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 cryptiles@3.1.4: 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 boom@4.3.1: 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 sntp@2.1.0: 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 boom@5.2.0: 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).> x509@0.3.3 install /chaincode/output/node_modules/x509
> node-gyp rebuildmake: 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<v8::Object> Nan::CloneElementAt(v8::Local<v8::Array>, uint32_t)':
../node_modules/nan/nan_maybe_43_inl.h:220:58: warning: 'v8::MaybeLocal<v8::Object> v8::Array::CloneElementAt(v8::Local<v8::Context>, 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 hereMaybeLocal<Object> CloneElementAt(Local<Context> 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<v8::BooleanObject>::return_t Nan::imp::Factory<v8::BooleanObject>::New(bool)':
../node_modules/nan/nan_implementation_12_inl.h:40:38: warning: 'static v8::Local<v8::Value> v8::BooleanObject::New(bool)' is deprecated: Pass an isolate [-Wdeprecated-declarations]return v8::BooleanObject::New(value).As<v8::BooleanObject>();^
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 hereV8_DEPRECATED("Pass an isolate", static Local<Value> 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::Object>, v8::Local<v8::String>, Nan::GetterCallback, Nan::SetterCallback, v8::Local<v8::Value>, v8::AccessControl, v8::PropertyAttribute)':
../node_modules/nan/nan.h:1969:16: warning: 'bool v8::Object::SetAccessor(v8::Local<v8::Name>, v8::AccessorNameGetterCallback, v8::AccessorNameSetterCallback, v8::Local<v8::Value>, 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 herebool SetAccessor(Local<Name> 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<v8::Object> Nan::CloneElementAt(v8::Local<v8::Array>, uint32_t)':
../node_modules/nan/nan_maybe_43_inl.h:220:58: warning: 'v8::MaybeLocal<v8::Object> v8::Array::CloneElementAt(v8::Local<v8::Context>, 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 hereMaybeLocal<Object> CloneElementAt(Local<Context> 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<v8::BooleanObject>::return_t Nan::imp::Factory<v8::BooleanObject>::New(bool)':
../node_modules/nan/nan_implementation_12_inl.h:40:38: warning: 'static v8::Local<v8::Value> v8::BooleanObject::New(bool)' is deprecated: Pass an isolate [-Wdeprecated-declarations]return v8::BooleanObject::New(value).As<v8::BooleanObject>();^
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 hereV8_DEPRECATED("Pass an isolate", static Local<Value> 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::Object>, v8::Local<v8::String>, Nan::GetterCallback, Nan::SetterCallback, v8::Local<v8::Value>, v8::AccessControl, v8::PropertyAttribute)':
../node_modules/nan/nan.h:1969:16: warning: 'bool v8::Object::SetAccessor(v8::Local<v8::Name>, v8::AccessorNameGetterCallback, v8::AccessorNameSetterCallback, v8::Local<v8::Value>, 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 herebool SetAccessor(Local<Name> 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<v8::Value> 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<v8::Value> parse_date(ASN1_TIME*)':
../src/x509.cc:433:60: warning: 'v8::Local<v8::Value> v8::Object::CallAsConstructor(int, v8::Local<v8::Value>*)' 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 hereLocal<Value> CallAsConstructor(int argc, Local<Value> 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.nodeCOPY Release/x509.node
make: Leaving directory '/chaincode/output/node_modules/x509/build'> grpc@1.10.1 install /chaincode/output/node_modules/grpc
> node-pre-gyp install --fallback-to-build --library=static_library"
Command failed

解决方案

  相关解决方案