Please Do Remeber to Edit/Change your bitcoin.config
for that you need to go to:
cd
ls
cd Downloads
ls
cd bitcoin
ls
nano bitcoin.config
Ctrl+shift+O/Ctrl+shift+s/ctrl+s to Save
Bitcoin.config file will be open then Edit/change : Link
Or If this Don't work/open then :
cd
ls
ls -lha
cd bitcoin
ls -lha
nano bitcoin.config
Bitcoin.config file will be open then Edit/change : Link
Go to Terminal:
cd
dir
cd bitcoin
bitcoind
bitcoin --daemon
Bitcoin will start running
Go to New Terminal
mkdir Ex
cd Ex
code .
Visual Studio Code will open with Project folder(Ex)
create new file : index.js
npm init
npm install bitcoin
node index.js
bitcoin-cli getblockchaininfo
So, Now you will get the ouptut as in photo.