-
Notifications
You must be signed in to change notification settings - Fork 47
Open
Description
I'm using an M3 Macbook Pro and am trying to load/use the Couchbase package
Using the below example code give the following error after installing the couchbase package:
Error: Could not find native build for platform=darwin, arch=arm64, runtime=electron, nodeVersion=20.18.1, sslType=boringssl loaded from /Applications/RunJS.app/Contents/Resources.
Example code:
import {
Bucket,
Cluster,
Collection,
connect,
GetResult,
} from 'couchbase'
const cluster: Cluster = await connect(
'couchbase://127.0.0.1',
{
username: 'username',
password: 'password',
})
const bucket: Bucket = cluster.bucket('default')
const coll: Collection = bucket.defaultCollection()
await coll.upsert('testdoc', { foo: 'bar' })
const res: GetResult = await coll.get('testdoc')
console.log(res.content)
I guessing this is an amd64 / x86_64 conflict but I'm not sure how to resolve it. I assume the Node arch type is embedded in the RunJs application (as it says node v20.18.1 and I have v20.19.4 in my cli)
Metadata
Metadata
Assignees
Labels
No labels