Skip to content

Missing build platform, M3 Mac arm64 #690

@andyclarke

Description

@andyclarke

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions