'Solana Can't find devnet.json
I'm following this article as a practice. And stuck with
cat .config/solana/devnet.json
I realize that windows OS doesn't have cat
so I tried
type ~/.config/solana/devnet.json
that result in
The syntax of the command is incorrect.
so I try again with
type "~/.config/solana/devnet.json"
and this time, it leads to
The system cannot find the file specified.
It's kind of surprise me so I browse that directory(C:\Users\my-name\.config\solana) and found devnet.json is truly not there.
My questions are where could this file be? Or which step I might do wrong so the file was not generated? I check the result message of each step, things look fine...
Solution 1:[1]
It turns out since I didn't change the working directory so the devnet.json is saved in C:\Windows\System32\~\.config\solana
Solution 2:[2]
Got the same problem It seems that there is no devnet.json file created but the devnet wallet works successfully
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | Circle Hsiao |
Solution 2 | gurguven |