Truffle refuses to work!

truffle --version

/usr/local/lib/node_modules/truffle/build/9129.bundled.js:80206
            return _this.outputFormatter && res ? _this.outputFormatter(res, this?.hexFormat) : res;
                                                                                  ^

SyntaxError: Unexpected token '.'
    at wrapSafe (internal/modules/cjs/loader.js:915:16)
    at Module._compile (internal/modules/cjs/loader.js:963:27)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
    at Module.load (internal/modules/cjs/loader.js:863:32)
    at Function.Module._load (internal/modules/cjs/loader.js:708:14)
    at Module.require (internal/modules/cjs/loader.js:887:19)
    at require (internal/modules/cjs/helpers.js:85:18)
    at Object.__webpack_require__.f.require (/usr/local/lib/node_modules/truffle/build/cli.bundled.js:608:28)
    at /usr/local/lib/node_modules/truffle/build/cli.bundled.js:538:40
    at Array.reduce (<anonymous>)
1 Like

Have you followed the installation docs: https://archive.trufflesuite.com/docs/truffle/how-to/install/

And I think the truffle team has given up on maintaining it, look at this: https://archive.trufflesuite.com/blog/sunsetting-truffle-teams/

And there are many other tools, like hardhat, foundry, viem and so on.