Closed letmejustputthishere closed 1 year ago
dfx nns install
returns a very strange error:
Error: Failed to install NNS components.
Caused by: Failed to install NNS components.
Failed to verify that the local replica type is 'system'.
The replica subnet_type needs to be 'system' to run NNS canisters. Current value: Ok(Application).
You can configure it by setting local.replica.subnet_type to "system" in your global networks.json:
1) Create or edit: /home/zen/.config/dfx/networks.json
2) Set the local config to:
{
"local": {
"bind": "127.0.0.1:8080",
"type": "ephemeral",
"replica": {
"subnet_type": "application"
}
}
}
3) Verify that you have no network configurations in dfx.json.
4) Restart dfx:
dfx stop
dfx start --clean
dfx.json:
"defaults": {
"replica": {
"subnet_type": "system"
}
},
networks.json:
{}
We also have to take a few extra steps to send tokens to a local wallet https://forum.dfinity.org/t/dfx-nns-install-ledger-balance-0n/17776
Oops, sorry, didn't notice it wasn't assigned to me. @letmejustputthishere
https://internetcomputer.org/docs/current/references/cli-reference/dfx-nns#dfx-nns-install