I am getting the following error. Can anyone help me with this?
I am following
By @kpeacock
That’s new to me. I’ll see if they added some dependency that needs to be documented in the Readme
Okay @kpeacock. Let me know, if you got some fix. I had blocked there.
I’m not encountering that error. From the Readme, you need these requirements:
dfx
version 0.7.0
Rust version 1.51
NodeJS (with npm) version TBD
CMake
Then run the following steps:
npm install
dfx start [--clean] [--background]
II_ENV=development dfx deploy --no-wallet --argument '(null)'
These are the versions I am using.
I didn’t get what is node js version TBD?
And I also wanted to know, how to use multiple dfx versions… Is it possible? Because I am using dfx 0.7.2 for my project but internet identity is on dfx 0.7.0.
Thanks for reply.
They didn’t specify a node version. I’m also running 16, so I think you’re fine.
Dfx 0.7.0 and 0.7.2 should both work, but if you want to use another version, you can install it specifically with
DFX_VERSION=0.7.0 sh -ci "$(curl -fsSL https://sdk.dfinity.org/install.sh)"
and then
DFX_VERSION=0.7.2 dfx start
You can lock the dfx version for a project by specifying "dfx"
in your dfx.json
, and I personally use an alias of dfxv
where I can then pass the version I want, e.g. dfxv 0.7.0
dfxv () {
if [ -n "$1" ]
then
export DFX_VERSION="$1"
fi
sh -ci "$(curl -fsSL https://sdk.dfinity.org/install.sh)"
}