Getting error while trying to fork a BSC chain using Ganache #4100
-
I have installed ganache following instructions from https://github.com/trufflesuite/ganache#documentation I am trying to fork BSC chain for which I have a full node running locally which is fully synced(I want to fork this for which I have provided the URL in package.json under 'scripts') . I am using Ubuntu 20.04 LTS. I have also updated Node.js and npm. When trying to run ganache using 'npm run ganache' It is giving me this error. Any idea how can I solve this? `SyntaxError: Unexpected token '?' |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
@abhishek6383 I've only been able to reproduce this with NodeJs 12.x, which is no longer supported - I see you've updated Node.js, but can you please confirm the version that you are using? Can you please also provide the version of Ganache that you have installed to your project? |
Beta Was this translation helpful? Give feedback.
@abhishek6383 I've only been able to reproduce this with NodeJs 12.x, which is no longer supported - I see you've updated Node.js, but can you please confirm the version that you are using?
node --version
should output this.Can you please also provide the version of Ganache that you have installed to your project?
npm list ganache
should do it (npx ganache --version
would normally work too, but given the error, I don't think it will).