New to Solana/Blockchain – going through the course: Solana Developer Course
When I create the generate-keypair.ts file and execute the command: npx esrun generate-keypair.ts, nothing happens. No errors or output.
If I change the contents of the file to a simple console.log(“whatever”) statement, it works.
File contents:
import { Keypair } from "@solana/web3.js"; const keypair = Keypair.generate(); console.log('✅ Generated keypair!'
)`
Using
Ubuntu 22.04.4
npx 10.7.0
node 20.14.0
esrun 3.2.26
tsc 4.5.4
I tried running the command and expected a string output, but nothing happened. Terminal gave no result.