That’s new to me. I’ll see if they added some dependency that needs to be documented in the Readme
Okay @anon74414410. 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:
-
dfxversion 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)'
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)"
}

