Configure the ejson key directory
mainBy default, ejson looks for keys in /opt/ejson/keys. You can change this location by setting the EJSON_KEYDIR environment variable or by passing the -keydir option to commands.
To create the default directory:
mkdir -p /opt/ejson/keysmacOS Users: You may need to grant your user permission to write to /opt/ejson:
sudo chown -R $(whoami) /opt/ejson