thank you for the answer maybe the problem could be the quotation marks i’ve deleted them
or you could understand if the .env and .gitignore are not in the root??
scripts % npx hardhat run scripts/sample-script.js --network matic
WARNING: You are using a version of Node.js that is not supported, and it may work incorrectly, or not work at all. See https hardhat. org/ nodejs-versions
ErrorHH8: There’s one or more errors in your config file:
Invalid account: #0 for network: matic - Expected string, received undefined
To learn more about Hardhat’s configuration, please go to https: hardhat. org/ config/
For more info go to https hardhat. org/ HH8 or run Hardhat with --show-stack-traces
You probably need to check your current version of Node.js.
Node Version Manager (NVM) allows you to simultaneously install and maintain many different independent versions of Node.js and their associated Node packages.
If you use a MAC OS, you can manually try the various versions of Node.
The installation process is as follows: