Bug running `aztec-nargo new --contract counter`

Hello everyone,

I followed the docs to start development on Aztec. I’m running this command on this machine:

Description: Linux Mint 22.1 (debian)
Release: 22.1
Codename: xia
Architecture: x86_64
Node.js version: v18.20.5

Docker installed on my machine but when I run the command it gives me:

$ aztec-nargo new --contract counter                                                                                                                                                             (05-08 10:38)
The application panicked (crashed).
Message:  called `Result::unwrap()` on an `Err` value: IoError(Os { code: 13, kind: PermissionDenied, message: "Permission denied" })
Location: tooling/nargo_cli/src/cli/init_cmd.rs:72

This is a bug. We may have already fixed this in newer versions of Nargo so try searching for similar issues at https://github.com/noir-lang/noir/issues/.
If there isn t an open issue for this bug, consider opening one at https://github.com/noir-lang/noir/issues/new?labels=bug&template=bug_report.yml

Can someone help me?

can you try rm ~/nargo/.package-cache then with sudo if not

Just in case, check the permissions of ~/nargo/github.com and ~/nargo as well

thanks for the reply, I solved updating my docker version to the latest one.

please can you help with this issue? I have another:

thread 'main' panicked at src/transpile.rs:598:9:
Transpiler expects ForeignCall (Static)Call to have 0 destinations and 5 inputs, got 0 and 4.
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

Also wrote on Discord but no one helped me for this.

1 Like

Can you share the circuit or contract that you are trying to compile?