Uploaded image for project: 'Node.js Driver'
  1. Node.js Driver
  2. NODE-6618

Pin NPM version to 10 for Node.js 18

    • Type: Icon: Build Failure Build Failure
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 6.13.0
    • Affects Version/s: None
    • Component/s: None
    • 2
    • Not Needed
    • Not Needed
    • Hide

      1. What would you like to communicate to the user about this feature?
      2. Would you like the user to see examples of the syntax and/or executable code and its output?
      3. Which versions of the driver/connector does this apply to?

      Show
      1. What would you like to communicate to the user about this feature? 2. Would you like the user to see examples of the syntax and/or executable code and its output? 3. Which versions of the driver/connector does this apply to?

      Use Case

      As a... Node.js engineer
      I want... to pin npm to 10 for Node.js 18
      So that... my tests run and I can verify my code's correctness

      User Experience

      • None

      Dependencies

      • npm / driver-tools node script

      Risks/Unknowns

      • None

      Acceptance Criteria

      Implementation Requirements

      • Pin NPM to 10 wherever node 18 is installed
      • Adjust install node script in drivers evergreen tools to choose the correct npm version for each node version (pin to npm 10 when using node 18, handle node 20)
      • Remove any npm version pinning from each of our package's install node scripts
      • Keep handling for the NPM_VERSION variable (in case we need it in the future)
      • Add a comment explaining that the version pinning is managed by the drivers evergreen tools script

      Testing Requirements

      • CI should pass

      Documentation Requirements

      • N/A

      Follow Up Requirements

      • N/A

        There are no Sub-Tasks for this issue.

            Assignee:
            durran.jordan@mongodb.com Durran Jordan
            Reporter:
            neal.beeken@mongodb.com Neal Beeken
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: