Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/apache-flex/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Yarnpkg 如何创建子链?_Yarnpkg_Rust Cargo_Substrate_Polkadot - Fatal编程技术网

Yarnpkg 如何创建子链?

Yarnpkg 如何创建子链?,yarnpkg,rust-cargo,substrate,polkadot,Yarnpkg,Rust Cargo,Substrate,Polkadot,我需要帮助 我在创建第一个子串链(参见)时有两个主要错误 安装前端模板时出错 ~/Bureau/ETH-BIT/基板/基板前端模板$ls许可证 package.json public README.md src warn.lock pclf@ubuntu:~/Bureau/ETH-BIT/基板/基板前端模板$ 纱线安装 错误:[Errno 2]没有这样的文件或目录:“安装” 编译基板时出错 货物构建-发布 错误:无法为节点模板运行时v2.0.0(/home/pclf/Bureau/ETH-BIT

我需要帮助

我在创建第一个子串链(参见)时有两个主要错误

安装前端模板时出错

~/Bureau/ETH-BIT/基板/基板前端模板$ls许可证 package.json public README.md src warn.lock pclf@ubuntu:~/Bureau/ETH-BIT/基板/基板前端模板$ 纱线安装 错误:[Errno 2]没有这样的文件或目录:“安装”

编译基板时出错

货物构建-发布 错误:无法为
节点模板运行时v2.0.0(/home/pclf/Bureau/ETH-BIT/subscriber/subscriber节点模板/运行时)运行自定义生成命令。

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

---斯特德尔 编译wasm构建运行程序impl v1.0.0(/home/pclf/Bureau/ETH-BIT/substrate/substrate节点模板/target/release/wbuild runner/node-template-runtime4021631938540302808) 在7.49秒内完成发布[优化]目标 正在运行
/home/pclf/Bureau/ETH-BIT/subscriber/subscriber节点模板/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 inherents v2.0.0 编译框架元数据v12.0.0 编译sp finality tracker v2.0.0错误[E0282]:需要类型批注 -->/home/pclf/.cargo/registry/src/github.com-1ecc6299db9ec823/sp-aluthm-2.0.0/src/fixed_point.rs:541:9 |541 |让精度=P::精度。饱和成(); ②考虑给予<代码>精度< /代码> A型…1595 |/机具已修复!(1596 | | fixed64,
1597 |测试|固定| i64,1598 | i64,| 1601 || “定点64位有符号,范围=[-9223372036.854775808, 9223372036.854775807]", 1602 | | ); |在这个宏调用中 | =注意:此错误源于宏(在夜间构建中,使用-Z宏反向跟踪运行以获取更多信息)

错误[E0282]:需要类型批注 -->/home/pclf/.cargo/registry/src/github.com-1ecc6299db9ec823/sp-aluthm-2.0.0/src/fixed_point.rs:541:9 |541 |让精度=P::精度。饱和成(); ②考虑给予<代码>精度< /代码> A型…1604 |/机具|已修复!(1605 | | fixedia128,
1606 | |测试|固定| i128、1607 | | i128、| 1611| | [-170141183460469231731.687303715884105728, 170141183460469231731.687303715884105727]_", 1612 | | ); |在这个宏调用中 | =注意:此错误源于宏(在夜间构建中,使用-Z宏反向跟踪运行以获取更多信息)

错误[E0282]:需要类型批注 -->/home/pclf/.cargo/registry/src/github.com-1ecc6299db9ec823/sp-aluthm-2.0.0/src/fixed_point.rs:541:9 |541 |让精度=P::精度。饱和成(); (一)给出“<代码>精度> <代码>……类型1614…/实现固定!(1615)固定U128,
1616 | |测试|固定| u128,1617 | | u128,…| 1621| | [0.000000000000000000, 340282366920938463463.374607431768211455]_", 1622 | | ); |在这个宏调用中 | =注意:此错误源于宏(在夜间构建中,使用-Z宏反向跟踪运行以获取更多信息)

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

有关此错误的详细信息,请尝试
rustc--explain E0282
。 错误:无法编译
sp算术

错误:生成失败


您只需在前端模板目录中运行
warn
,即可工作。但“许可证是否公开”的信息从何而来?你不应该看到这一点。您是克隆了基板前端模板repo还是只是创建了目录?确切的过程是:

  • 用git clone克隆它https://github.com/substrate-developer-hub/substrate-front-end-template
  • 输入带有
    cd基板前端模板的文件夹
  • 运行
    纱线
至于基底编译错误,请将您的夜间版本降级到较旧的版本,这是由于错误。以下是如何做到这一点:

rustup每晚卸载
生锈安装夜间-2020-10-01
生锈目标添加wasm32未知-工具链nightly-2020-10-01

第一件事是先解决底层编译问题。 用这张纸条

https://github.com/substrate-developer-hub/substrate-node-template/blob/master/scripts/init.sh
当节点启动并运行后,开始使用前端