Error running package.json script

Hi
I cannot get npm install to run at all. I get the following error:
2019-06-20T12:29:03.697+1000 E QUERY [js] SyntaxError: missing ; before statement @(shell):1:4
I have tried running the package.json script directly but I then get the following error:
2019-06-20T12:25:09.027+1000 E QUERY [js] SyntaxError: missing ; before statement @(shell):2:8

Can I please get some guidance on what I am doing wrong.
Thanks
Andrew

You need to run the command outside the Mongo Shell. It looks like you are running from the mongo shell.

If no, please share the screenshot so that we can take a look.

Kanika