Problem with "npm run build:program-rust" process

Hi, when i try run build program rust, terminal return this error,:

 example-helloworld % npm run build:program-rust

> [email protected] build:program-rust
> cargo build-bpf --manifest-path=./src/program-rust/Cargo.toml --bpf-out-dir=dist/program

error: no such subcommand: `build-bpf`

i try search on internet, and i already update rustc but dont work … and i don’t know like go away

You just need to run cargo build in the terminal inside the project folder, it will compile the code and then you can execute it with cargo run.

Carlos Z

1 Like