我已经在instruction之后安装了Mongodb。但是,它在Mongo
中只有usr/local/bin
当我尝试将json文件导入数据库时,显示错误消息:
> mongoimport --jsonArray --db hw4 --collection restaurants --file restaurants.json 2019-11-12T15:18:28.737-0600 E QUERY [js] uncaught exception: SyntaxError: unexpected token: identifier : @(shell):1:14
似乎没有安装mongoimport
。我该如何安装它,或者还有另一种导入数据的方法?