Node.js can't find module on new machine (works on my old computer) npm install had no errors

Hello,
npm install couchbase --save completes. I get the following error about the missing module when I run npm start. The file it complains about can be found in the d: location it complains about, but notice the //? in the file path:

node:internal/modules/cjs/loader:1732
return process.dlopen(module, path.toNamespacedPath(filename));
^

Error: The specified module could not be found.
\\?\D:\apps\LSLServer\node_modules\@couchbase\couchbase-win32-x64-napi\couchbase-v4.4.5-napi-v6-win32-x64-boringssl.node
at Object..node (node:internal/modules/cjs/loader:1732:18)
at Module.load (node:internal/modules/cjs/loader:1289:32)
at Function._load (node:internal/modules/cjs/loader:1108:12)
at TracingChannel.traceSync (node:diagnostics_channel:322:14)
at wrapModuleLoad (node:internal/modules/cjs/loader:220:24)
at Module.require (node:internal/modules/cjs/loader:1311:12)
at require (node:internal/modules/helpers:136:16)
at Object.loadPrebuild (D:\apps\LSLServer\node_modules\couchbase\scripts\prebuilds.js:362:10)
at Object. (D:\apps\LSLServer\node_modules\couchbase\dist\binding.js:169:41)
at Module._compile (node:internal/modules/cjs/loader:1554:14) {
code: ‘ERR_DLOPEN_FAILED’
}

Node.js v22.14.0

I’ve tried uninstalling and reinstalling, deleting the node_modules directory and package-lock, etc. I did a repair on node.js. I grumbled a LOT. I’m grumbling now…

It seems to be looking for boringssl.

@jcasey

You have repeated the problem description and then included install instructions for some unknown reason…

The link is for the release notes where it mentions boringssl. I mentioned the boringssl module in my comment so you wouldn’t be confused as to why I gave the link about boringssl. But alas. I also tagged someone that may be able to help.

It appears to be a bug with Node.js v22.14 ONLY . v22.11 works on my old box. I gave up and upgraded to non-LTS v23 and it worked. Sorta-solved!

1 Like