| Why can't I require('@mongosh/autocomplete'); in nix install mongosh? I see that it is run like:
exec "/nix/store/4r6qr0bzmkdjjjaf7i4vbjmf92l9zpq0-nodejs-20.11.1/bin/node" /nix/store/wzh6cmr5xnzg1ljsvfwpl2ph7iws5sxw-mongosh-2.2.2/lib/node_modules/mongosh/bin/mongosh.js "$@"
I see that /nix/store/wzh6cmr5xnzg1ljsvfwpl2ph7iws5sxw-mongosh-2.2.2/lib/node_modules/mongosh/bin/mongosh.js has:
#!/nix/store/4r6qr0bzmkdjjjaf7i4vbjmf92l9zpq0-nodejs-20.11.1/bin/node
require('@mongosh/cli-repl/lib/run');
I guess I somehow need to add my require for mongosh/autocomplete to that mongosh.js file? I thought that because /nix/store/wzh6cmr5xnzg1ljsvfwpl2ph7iws5sxw-mongosh-2.2.2/lib/node_modules/mongosh/node_modules/@mongosh/autocomplete/ exists I could do require @mongosh/autocomplete.
|