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

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

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:


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:

"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

2 Likes