尝试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

解决方案

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

  1. npm 安装出错 npm ERR! request to https://registry.npmjs.org/express failed, reason: unable to verify th

    npm 安装 jointjs时 出现 D:\Project\demo>npm install jointjs npm ERR! code UNABLE_TO_VERIFY_LEAF_SIGNAT ...

  2. 解决报错npm ERR request to https://registry.cnpmjs.org/wangeditor failed, reason: Hostname/

    vue用npm install时报错时出现: npm ERR! request to https://registry.cnpmjs.org/wangeditor failed, reason: Ho ...

  3. 安装npm install报错npm ERR! request to https://registry.cnpmjs.org/@jeecg%2fantd-online-mini failed, rea

    先是下载cnpm然后报错,不是外部命令然后我用npm uninstall cnpm -g删除了,在用npm install的时候就报错了 npm ERR! code ERR_TLS_CERT_ALTN ...

  4. npm ERR! network request to https://registry.npmjs.org/axios failed, reason: Client network socket d

    在终端通过npm install 安装axios/sass等第三方库时报错 npm ERR! network request to https://registry.npmjs.org/axios f ...

  5. 解决: ERR! network request to https://registry.npmjs.org/@fortawesome%2fvue-fontawesome failed 问题

    1.问题描述: 其一.报错为: 在配置 node 版本与 node-sass 等的操作过程中,发现无论是装 element-plus 依赖,还是运行项目都发现报错: ERR! network requ ...

  6. npm i报错npm ERR! network request to https://registry.npmjs.org/vue-router failed, reason: read ECONNR

    npm i报错npm ERR! network request to https://registry.npmjs.org/vue-router failed, reason: read ECONNR ...

  7. errno ETIMEDOUT npm ERR! network request to https://registry.npmjs.

    npm ERR! code ETIMEDOUT npm ERR! errno ETIMEDOUT npm ERR! network request to https://registry.npmjs. ...

  8. request to https://registry.npmjs.org/@angular%2fcli failed, reason: read ECONNRESET

    npm config set registry https://registry.npm.taobao.org

  9. request to https://registry.yarnpkg.com/XXX, reason: getaddrinfo EAI_AGAIN regis

    场景 项目是在win上搭建的,迁移到ubuntu ,使用yarn 安装时报错,需要一个包esbuild-linux-64,很明显,这是Esbuild 在linux 环境下的包,然而这个 ubuntu ...

最新文章

  1. HDU 2896 病毒侵袭 AC自己主动机题解
  2. android如何查看分区信息,android如何查看分区信息
  3. 在ListView的顶部和底部加入其他View
  4. php向ldap插入数据,给LDAP添加用户,构造用户文件,然后使用phpLadpadmin导入
  5. 如何在windows系统上安装Tensorflow Object Detection API?
  6. python 命令行 解析模块 optparse、argparse
  7. 全民加速节:全站加速在互联网媒体应用上的最佳实践
  8. .NET中如何深度判断2个对象相等
  9. java生成自定义标志、大小的二维码
  10. 045 Android Studio 常用应用
  11. 数据结构笔记(三十)-- 查找的基本概念和相关的顺序查找
  12. 2015年Java开发岗位面试题归类
  13. Unity WIndows语音识别(一)关键字识别
  14. android加载图片+背景,Android开发中ImageLoder加载网络图片时将图片设置为ImageView背景的方法...
  15. 基本的广告法违禁词、违规词以及敏感词大全
  16. 模型训练测试之三:yolov5 模型训练及windows部署(一)
  17. his系统管理工具配置服务器,HIS系统(his管理系统)V3.0.1 官网版
  18. 计算机无法找到输出设备,电脑没声音找不到输出设备怎么办
  19. 驾考科目二考试经验谈
  20. bzoj1022 约翰的游戏 反SG-博弈

热门文章

  1. 中国boy小空间分享 —— hansw.life
  2. [POI2010]KLO-Blocks(单调栈)
  3. 无人机航测从外业作业到内业处理,我们有一整套实战教程(精灵4RTK外业部分)
  4. 莆田系医院清洗日记(科普小文)
  5. 2023基于微信小程序的校园顺路代送跑腿系统(SSM+mysql)-JAVA.VUE(论文+开题报告+运行)
  6. 上传图片 cavans
  7. coursera 吴恩达 -- 第一课 神经网络和深度学习 :第二周课后习题 Neural Network Basics Quiz, 10 questions
  8. 晶振在ad的哪个库里_关于晶振的问题库
  9. 如何部署linux服务器,CRAP-API——如何在Linux服务器部署CRAP-API教程
  10. WebAPI中className与classList的区别