-
-
Notifications
You must be signed in to change notification settings - Fork 33.7k
Open
Description
When installing node 22.5.0 and 22.5.1 i realized that node:sqlite was not actually part of it. At least not in the ARM mac builds.
> node -v
v22.5.0
> node
Welcome to Node.js v22.5.0.
Type ".help" for more information.
> require('node:sqlite')
Uncaught Error [ERR_UNKNOWN_BUILTIN_MODULE]: No such built-in module: node:sqlite
at Module._load (node:internal/modules/cjs/loader:1038:13)
at TracingChannel.traceSync (node:diagnostics_channel:315:14)
at wrapModuleLoad (node:internal/modules/cjs/loader:215:24)
at Module.require (node:internal/modules/cjs/loader:1304:12)
at require (node:internal/modules/helpers:123:16) {
code: 'ERR_UNKNOWN_BUILTIN_MODULE'
}
I realized that as the Zed project tried to start a copilot language server as such:
> "/Users/mgt/Library/Application Support/Zed/node/node-v22.5.1-darwin-arm64/bin/node" -v
v22.5.1
> "/Users/mgt/Library/Application Support/Zed/node/node-v22.5.1-darwin-arm64/bin/node"
Welcome to Node.js v22.5.1.
Type ".help" for more information.
> s = require('node:sqlite')
Uncaught Error [ERR_UNKNOWN_BUILTIN_MODULE]: No such built-in module: node:sqlite
at Module._load (node:internal/modules/cjs/loader:1038:13)
at TracingChannel.traceSync (node:diagnostics_channel:315:14)
at wrapModuleLoad (node:internal/modules/cjs/loader:215:24)
at Module.require (node:internal/modules/cjs/loader:1304:12)
at require (node:internal/modules/helpers:123:16) {
code: 'ERR_UNKNOWN_BUILTIN_MODULE'
}
and that version does not have node:sqlite yet. I then installed. Version 24.8 seems to have it at least. Not sure when it was added.
Metadata
Metadata
Assignees
Labels
No labels