Hello, after cloning the https://github.com/solana-labs/example-helloworld#quick-start repository, I tried the “npm i” command but package.json was missing then I created it with “npm init” but then the “program-rust” script couldn’t be found.
What should I do?
Thanks
Hi there Arnaud!
Did you install all the dependencies as mentioned there in guide?
The following dependencies are required to build and run this example, depending on your OS, they may already be installed:
- Install node (v14 recommended)
- Install npm
- Install Rust v1.56.1 or later from https://rustup.rs/
- Install Solana v1.10.35 or later from https://docs.solana.com/cli/install-solana-cli-tools
and configure your CLI :
Configure CLI
If you’re on Windows, it is recommended to use WSL - https://docs.microsoft.com/en-us/windows/wsl/install-win10) to run these commands
- Set CLI config url to localhost cluster
solana config set --url http://127.0.0.1:8899
- Create CLI Keypair
If this is your first time using the Solana CLI, you will need to generate a new keypair:
solana-keygen new