如何创建子主题链?

如何解决如何创建子主题链?

我需要帮助

在创建我的第一个子主题链时,我有两个主要错误(参见https://substrate.dev/docs/en/tutorials/create-your-first-substrate-chain/setup

安装前端模板时发生错误

〜/ Bureau / ETH-BIT / substrate / substrate-front-end-template $ ls许可 package.json公共README.md src yarn.lock pclf @ ubuntu:〜/局/ ETH-BIT / substrate / substrate-front-end-template $ 纱线安装 错误:[Errno 2]没有这样的文件或目录:'install'

编译基板时出错

货物建造-发行版 错误:无法为node-template-runtime v2.0.0 (/home/pclf/Bureau/ETH-BIT/substrate/substrate-node-template/runtime)

运行自定义生成命令

原因:进程未成功退出: /home/pclf/Bureau/ETH-BIT/substrate/substrate-node-template/target/release/build/node-template-runtime-663c8dc25926c960/build-script-build (退出代码:1)--- stdout执行构建命令:“ rustup”“ run” “每晚”“货物”“ rustc”“-target = wasm32-未知-未知” “ --manifest-path = / home / pclf / Bureau / ETH-BIT / substrate / substrate-node-template / target / release / wbuild / node-template-runtime / Cargo.toml”“ --color = always”“ --release“

-stderr 编译wasm-build-runner-impl v1.0.0(/ home / pclf / Bureau / ETH-BIT / substrate / substrate-node-template / target / release / wbuild-runner / node-template-runtime4021631938540302808) 在7.49秒内完成发布[最佳化]目标 运行/home/pclf/Bureau/ETH-BIT/substrate/substrate-node-template/target/release/wbuild-runner/node-template-runtime4021631938540302808/target/x86_64-unknown-linux-gnu/release/wasm-build-runner-impl 编译sp算术v2.0.0 编译sp-io v2.0.0 编译sp固有v2.0.0 编译框架元数据v12.0.0 编译sp-finality-tracker v2.0.0错误[E0282]:需要类型注释 -> /home/pclf/.cargo/registry/src/github.com-1ecc6299db9ec823/sp-arithmetic-2.0.0/src/fixed_point.rs:541:9 | 541 |设精度= P :: ACCURACY.saturated_into(); | 1595 | ^^^^^^^^^^考虑给accuracy一种类型... / Implement_fixed!(1596 | | FixedI64,
1597 | | test_fixed_i64,1598年| | i64,... | 1601 | | “ 固定点64位带符号,范围= [-9223372036.854775808, 9223372036.854775807] ”,1602 | | |); | | __-在此宏调用中 | =注意:此错误源于一个宏(在每晚构建中,请使用-Z macro-backtrace运行以获取更多信息)

错误[E0282]:需要输入类型注释 -> /home/pclf/.cargo/registry/src/github.com-1ecc6299db9ec823/sp-arithmetic-2.0.0/src/fixed_point.rs:541:9 | 541 |设精度= P :: ACCURACY.saturated_into(); | 1604 | ^^^^^^^^^考虑给accuracy一种类型... / Implement_fixed!(1605 | | FixedI128,
1606 | | test_fixed_i128,1607年| | i128,... | 1611 | | [-170141183460469231731.687303715884105728, 170141183460469231731.687303715884105727] _“,1612 | | |); | | __-在此宏调用中 | =注意:此错误源于一个宏(在每晚构建中,请使用-Z macro-backtrace运行以获取更多信息)

错误[E0282]:需要输入类型注释 -> /home/pclf/.cargo/registry/src/github.com-1ecc6299db9ec823/sp-arithmetic-2.0.0/src/fixed_point.rs:541:9 | 541 |设精度= P :: ACCURACY.saturated_into(); | 1614 | ^^^^^^^^^^考虑给accuracy一种类型... / Implement_fixed!(1615 | | FixedU128,
1616 | | test_fixed_u128,1617 | | u128,... | 1621 | | [0.000000000000000000, 340282366920938463463.374607431768211455] _“,1622 | | |); | | __-在此宏调用中 | =注意:此错误源于一个宏(在每晚构建中,请使用-Z macro-backtrace运行以获取更多信息)

错误:由于之前的3个错误而中止

有关此错误的更多信息,请尝试rustc --explain E0282。 错误:无法编译sp-arithmetic

错误:构建失败

解决方法

您可以只在前端模板目录中运行yarn,它将起作用。但是“许可公开”消息从何而来?你不应该看到那个。您是否克隆了衬底前端模板回购库或仅创建目录?确切的过程是:

  • git clone https://github.com/substrate-developer-hub/substrate-front-end-template克隆它
  • 使用cd substrate-front-end-template进入文件夹
  • 运行yarn

至于Substrate编译错误,请每晚将其降级到较旧的版本,这是由于bug in Rust引起的。这是这样做的方法:

rustup uninstall nightly
rustup install nightly-2020-10-01
rustup target add wasm32-unknown-unknown --toolchain nightly-2020-10-01
,

首先首先解决Substrate编译。 运行这个脚本

https://github.com/substrate-developer-hub/substrate-node-template/blob/master/scripts/init.sh

当您启动并运行节点后,开始使用前端。

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐


使用本地python环境可以成功执行 import pandas as pd import matplotlib.pyplot as plt # 设置字体 plt.rcParams['font.sans-serif'] = ['SimHei'] # 能正确显示负号 p
错误1:Request method ‘DELETE‘ not supported 错误还原:controller层有一个接口,访问该接口时报错:Request method ‘DELETE‘ not supported 错误原因:没有接收到前端传入的参数,修改为如下 参考 错误2:cannot r
错误1:启动docker镜像时报错:Error response from daemon: driver failed programming external connectivity on endpoint quirky_allen 解决方法:重启docker -> systemctl r
错误1:private field ‘xxx‘ is never assigned 按Altʾnter快捷键,选择第2项 参考:https://blog.csdn.net/shi_hong_fei_hei/article/details/88814070 错误2:启动时报错,不能找到主启动类 #
报错如下,通过源不能下载,最后警告pip需升级版本 Requirement already satisfied: pip in c:\users\ychen\appdata\local\programs\python\python310\lib\site-packages (22.0.4) Coll
错误1:maven打包报错 错误还原:使用maven打包项目时报错如下 [ERROR] Failed to execute goal org.apache.maven.plugins:maven-resources-plugin:3.2.0:resources (default-resources)
错误1:服务调用时报错 服务消费者模块assess通过openFeign调用服务提供者模块hires 如下为服务提供者模块hires的控制层接口 @RestController @RequestMapping("/hires") public class FeignControl
错误1:运行项目后报如下错误 解决方案 报错2:Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (default-compile) on project sb 解决方案:在pom.
参考 错误原因 过滤器或拦截器在生效时,redisTemplate还没有注入 解决方案:在注入容器时就生效 @Component //项目运行时就注入Spring容器 public class RedisBean { @Resource private RedisTemplate<String
使用vite构建项目报错 C:\Users\ychen\work>npm init @vitejs/app @vitejs/create-app is deprecated, use npm init vite instead C:\Users\ychen\AppData\Local\npm-
参考1 参考2 解决方案 # 点击安装源 协议选择 http:// 路径填写 mirrors.aliyun.com/centos/8.3.2011/BaseOS/x86_64/os URL类型 软件库URL 其他路径 # 版本 7 mirrors.aliyun.com/centos/7/os/x86
报错1 [root@slave1 data_mocker]# kafka-console-consumer.sh --bootstrap-server slave1:9092 --topic topic_db [2023-12-19 18:31:12,770] WARN [Consumer clie
错误1 # 重写数据 hive (edu)> insert overwrite table dwd_trade_cart_add_inc > select data.id, > data.user_id, > data.course_id, > date_format(
错误1 hive (edu)> insert into huanhuan values(1,'haoge'); Query ID = root_20240110071417_fe1517ad-3607-41f4-bdcf-d00b98ac443e Total jobs = 1
报错1:执行到如下就不执行了,没有显示Successfully registered new MBean. [root@slave1 bin]# /usr/local/software/flume-1.9.0/bin/flume-ng agent -n a1 -c /usr/local/softwa
虚拟及没有启动任何服务器查看jps会显示jps,如果没有显示任何东西 [root@slave2 ~]# jps 9647 Jps 解决方案 # 进入/tmp查看 [root@slave1 dfs]# cd /tmp [root@slave1 tmp]# ll 总用量 48 drwxr-xr-x. 2
报错1 hive> show databases; OK Failed with exception java.io.IOException:java.lang.RuntimeException: Error in configuring object Time taken: 0.474 se
报错1 [root@localhost ~]# vim -bash: vim: 未找到命令 安装vim yum -y install vim* # 查看是否安装成功 [root@hadoop01 hadoop]# rpm -qa |grep vim vim-X11-7.4.629-8.el7_9.x
修改hadoop配置 vi /usr/local/software/hadoop-2.9.2/etc/hadoop/yarn-site.xml # 添加如下 <configuration> <property> <name>yarn.nodemanager.res