Search code examples
testingethereumsoliditytruffle

How to solve the error ""before all" hook: prepare suite:"


When I tested my contract, I got this error ""before all" hook: prepare suite:"

Does anyone know how to solve this error?

This is my dependencies. "truffle": "5.0.7", "web3": "1.0.0-beta.46"


Solution

  • npm uninstall -g truffle

    npm install -g [email protected] (always got me back on track)