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

Make mongocrypt.h missing error with yarn install

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Gone away
    • Icon: Unknown Unknown
    • None
    • None
    • None
    • None
    • 3
    • 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?

    Description

      When using node package "mongodb-client-encryption": "^6.0.0", I get errors with the package:

      make: Entering directory '/app/node_modules/mongodb-client-encryption/build'
      CXX(target) Release/obj.target/mongocrypt/addon/mongocrypt.o
      In file included from ../addon/mongocrypt.cc:1:
       ../addon/mongocrypt.h:16:10: fatal error: mongocrypt/mongocrypt.h: No such file or directory
      16 | #include <mongocrypt/mongocrypt.h>

      even though the file does exist in node_modules in the addon directory.

      I am running Docker node:19.9 image in Ubuntu through WSL on Windows 11

      Using the following packages:

      "mongodb": "^6.0.0",
      "mongodb-client-encryption": "^6.0.0",
       

      Attachments

        Activity

          People

            neal.beeken@mongodb.com Neal Beeken
            edward.fu@terminal3.io Edward Fu
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: