Installing Dapptools on macOS M1: A Step-by-Step Guide


1 min read

Installing Dapptools on macOS M1: A Step-by-Step Guide

Update: Note that Dapptools is no longer maintained, and Foundry is recommended as an alternative.

In this tutorial, we'll walk through the process of installing Dapptools on a macOS M1 machine.

Preparing Your System

  1. Enable Rosetta on macOS:

    • If using iTerm, go to "Get Info" and enable Rosetta.

    • Verify by running:

        uname -a

      Ensure it shows x86_64 instead of arm64.

  2. Install Nix 2.5:

    • Run the command:

        sh <(curl -L
    • Follow the on-screen instructions to complete the installation.

Installing Dapptools

  1. Run the Dapptools Install Command:

    • Execute:

        curl | sh
    • Wait for the installation to complete.

  2. Verify Dapptools Installation:

    • Check the installation with:

        dapp --version
    • You should see output similar to:

        dapp 0.35.0
        solc, the solidity compiler commandline interface
        Version: 0.8.6+commit.11564f7e.Darwin.appleclang
        hevm 0.49.0


If you encounter the error error: file 'REPEAT' was not found, follow these steps:

  1. Locate the .nix file that's causing the issue.

  2. Manually replace <REPEAT> with "REPEAT" in the file.


You should now have Dapptools installed on your macOS M1. Remember, while Dapptools is no longer actively maintained, you can still use it following these steps. For a more up-to-date tool, consider exploring Foundry as an alternative. Happy coding!