0

Once I run truffle develop this is the error I am getting.

/usr/local/lib/node_modules/truffle/build/cli.bundled.js:33499
Config.search = (options = {}, filename) => {
                         ^

SyntaxError: Unexpected token =
    at exports.runInThisContext (vm.js:53:16)
    at Module._compile (module.js:374:25)
    at Object.Module._extensions..js (module.js:417:10)
    at Module.load (module.js:344:32)
    at Function.Module._load (module.js:301:12)
    at Function.Module.runMain (module.js:442:10)
    at startup (node.js:136:18)
    at node.js:966:3

How to fix this? Thanks in advance

  • I think that the extra = is in fact the first one on that line, i.e., it should be Config.search(options = {}, filename) => {. – goodvibration Feb 15 at 10:04

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.