Mongodb Error Importing bson File

  mongodb, question

Mongodb 4.0.2 has just been installed and the default database can be viewed normally:

> show dbs
 admin   0.000GB
 config  0.000GB
 local   0.000GB

However, the imported bson data shows an error:

> mongorestore -h localhost:27017 -d test D:/wnmp/www/project_name/db/bson_backup/addresses.bson
 2018-08-31T18:52:19.949+0800 E QUERY    [js] SyntaxError: missing ;  before statement @(shell):1:16

What is the reason?

Mongorestore is an independent executable program, please do not execute it in the command line state entering mongodb!
Open a command line window to execute your command.