Dfx WARN: You seem to be running an outdated version of dfx. But I have latest version installed 0.12.1

dfx start fails? I haven’t seen that happen in a long time, especially with --clean. Let’s try manually cleaning up any state that’s left over.

  1. dfx stop in case anything is still running
  2. dfx start -vvvv to start with debug output
  3. cancel the running dfx start (Ctrl+C)
  4. In the output from dfx start -vvvv you should see a line that starts with data directory: that points to a folder. In my case it is /Users/<user name>/Library/Application Support/org.dfinity.dfx/network/local
  5. rm -rf <folder you found in step 4>
  6. start the replica again (dfx start --clean, with or without --background, as you prefer)
  7. try deploying again
3 Likes