0

As a personal project, I wanted to build an offline first app with Mondodb's realm, but I am not getting very far at all. The documentation suggests to install the realm CLI (npm install -g mongodb-realm-cli), but I am unable to run it. I get this error anytime I try running the realm-cli, no matter the input:

~ realm-cli -v
node:internal/child_process:413
    throw errnoException(err, 'spawn');
    ^

Error: spawn Unknown system error -86
    at ChildProcess.spawn (node:internal/child_process:413:11)
    at spawn (node:child_process:700:9)
    at Object.<anonymous> (/usr/local/lib/node_modules/mongodb-realm-cli/wrapper.js:22:22)
    at Module._compile (node:internal/modules/cjs/loader:1099:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
    at Module.load (node:internal/modules/cjs/loader:975:32)
    at Function.Module._load (node:internal/modules/cjs/loader:822:12)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:77:12)
    at node:internal/main/run_main_module:17:47 {
  errno: -86,
  code: 'Unknown system error -86',
  syscall: 'spawn'
}

Node.js v17.9.0

I saw that there was one other ticket open about the same case:

https://stackoverflow.com/questions/72157854/unable-to-run-realm-cli-on-mac-m1-return-nodeinternal-child-process

Just like that user, I am also using an M1 mac, but his solution was to freshly setup his macbook again. My macbook however is on a completely fresh install, and yet I experience this problem anyway.

I cannot find any other cases about this online.

Is this an M1 specific issue? Any idea how I can fix this?

I have tried uninstalling and re-installing the package with different npm versions through nvm, but I had no success with any version I tried.

0 Answers0