Uploaded image for project: 'MongoDB Shell'
  1. MongoDB Shell
  2. MONGOSH-981

Compile mongosh binary does not work in MONGOSH_RUN_NODE_SCRIPT mode

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • 1.0.5
    • 1.0.6
    • CLI Module
    • None
    • Not Needed
    • Iteration Kampala

    Description

      When running in MONGOSH_RUN_NODE_SCRIPT mode as a compiled binary, mongosh does not handle process.argv properly and instead tries to execute itself as a JS script.

      This breaks running snippets in scenarios where npm is not available globally.

      Attachments

        Activity

          People

            anna.henningsen@mongodb.com Anna Henningsen
            anna.henningsen@mongodb.com Anna Henningsen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: