# Trying the build the Internet Identity canister locally on MacOS. Is it possible?

**URL:** <https://forum.dfinity.org/t/trying-the-build-the-internet-identity-canister-locally-on-macos-is-it-possible/8587>\
**Category:** Language Support\
**Created:** [November 14, 2021, 9:51pm UTC](https://forum.dfinity.org/t/trying-the-build-the-internet-identity-canister-locally-on-macos-is-it-possible/8587 "2021-11-14T21:51:50Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![mbeekman](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/mbeekman/32/2675_2.png) [@mbeekman](https://forum.dfinity.org/u/mbeekman)\
**Post date:** [December 7, 2021, 1:30am UTC](https://forum.dfinity.org/t/trying-the-build-the-internet-identity-canister-locally-on-macos-is-it-possible/8587/6 "2021-12-07T01:30:10Z")

</div>

Coolio, thanks … I had time today to go back and try the local M1 install … basically your steps worked:  
[Setup Internet identity locally failed - MacBook M1 - #5 by Jesse](https://forum.dfinity.org/t/setup-internet-identity-locally-failed-macbook-m1/7684/5)

with an addition of changing package.json for I got some ERESOLVE errors for some jest packages…  
change package.json to:

“ts-jest”: “^27.1.0”,  
“@types/jest”: “^27.0.3”,

and it worked as expected at that point…  
cloned the repo, ran it once got this:

```auto

error: failed to add native library /var/folders/p8/w2kg1md960n_0m8cnvx4sld40000gn/T/cargo-install950Ib6/release/build/wabt-sys-5c97f456420b4626/out/build/libwabt.a: file too small to be an archive

error: aborting due to previous error

error: could not compile `wabt-sys`

To learn more, run the command again with --verbose.
warning: build failed, waiting for other jobs to finish...
error: failed to compile `ic-cdk-optimizer v0.3.1`, intermediate artifacts can be found at `/var/folders/p8/w2kg1md960n_0m8cnvx4sld40000gn/T/cargo-install950Ib6`

Caused by:
  build failed
The build step failed for canister 'rwlgt-iiaaa-aaaaa-aaaaa-cai' with an embedded error: The custom tool failed.

```

Then made the change to the build step as you suggested:

```auto
"build": "cargo build --release --target wasm32-unknown-unknown",

```

then deleted the package-lock, reran install, restarted dfx server, and it deployed …

Awesome Sauce!  
thanks again,  
-M

---

_[View the full topic](https://forum.dfinity.org/t/trying-the-build-the-internet-identity-canister-locally-on-macos-is-it-possible/8587)._
