Hello.
I had have a problem with compiling on my PC. I followed the same steps as in the videos. When I try to compile a simple helloworld contract I get the following output but nothing more.
C:\Users\Admin\Webdev\solidity\eth201project>truffle compile
Compiling your contracts...
===========================
√ Fetching solc version list from solc-bin. Attempt #1
After that I got no further feedback. I then just closed VS Code. If I try to compile now I get the following message.
C:\Users\Admin\Webdev\solidity>truffle compile
Could not find suitable configuration file.
Truffle v5.4.29 (core: 5.4.29)
Node v12.0.0
I use solidity version 0.8.0 in both contract and truffle config file. But I also still get this error message.
[{
"resource": "/c:/Users/Admin/Webdev/solidity/eth201project/contracts/hello.sol",
"owner": "_generated_diagnostic_collection_name_#1",
"severity": 8,
"message": "Source file requires different compiler version (current compiler is 0.8.11+commit.d7f03943.Emscripten.clang) - note that nightly builds are considered to be strictly less than the released version",
"startLineNumber": 2,
"startColumn": 1,
"endLineNumber": 2,
"endColumn": 23
}]
Thanks in advance for your help
Edit: I uninstalled truffle and wnated to reinstall it. Now I get the following error messages wehn I try to install:
C:\Users\Admin>npm install -g truffle
npm does not support Node.js v12.0.0
You should probably upgrade to a newer version of node as we
can't make any promises that npm will work with this version.
You can find the latest version at https://nodejs.org/
C:\Users\Admin\AppData\Roaming\npm\node_modules\npm\lib\utils\log-file.js:48
maxLogsPerFile = 50_000,
^^
SyntaxError: Invalid or unexpected token
at Module._compile (internal/modules/cjs/loader.js:703:23)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:770:10)
at Module.load (internal/modules/cjs/loader.js:628:32)
at Function.Module._load (internal/modules/cjs/loader.js:555:12)
at Module.require (internal/modules/cjs/loader.js:666:19)
at require (internal/modules/cjs/helpers.js:16:16)
at Object.<anonymous> (C:\Users\Admin\AppData\Roaming\npm\node_modules\npm\lib\npm.js:15:17)
at Module._compile (internal/modules/cjs/loader.js:759:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:770:10)
at Module.load (internal/modules/cjs/loader.js:628:32)