Hi, I under Ubuntu 20.04.3 LTS with nodejs v16.10.0 and npm v6.14.13
When I try to install the Realm CLI like this (with and without sudo) :
npm install -g mongodb-realm-cli
I have this error :
downloading “realm-cli” from “https://s3.amazonaws.com/realm-clis/realm_cli_rhel70_97239c6794575bad1486a178501366cea7e7d399_21_08_16_19_49_31/linux-amd64/realm-cli”
failed to download Realm CLI: Error: EACCES: permission denied, open ‘/usr/lib/node_modules/mongodb-realm-cli/realm-cli’
at Object.openSync (node:fs:585:3)
at /usr/lib/node_modules/mongodb-realm-cli/install.js:62:24
at new Promise ()
at requstBinary (/usr/lib/node_modules/mongodb-realm-cli/install.js:56:10)
at Object. (/usr/lib/node_modules/mongodb-realm-cli/install.js:101:1)
at Module._compile (node:internal/modules/cjs/loader:1101:14)
at Object.Module._extensions…js (node:internal/modules/cjs/loader:1153:10)
at Module.load (node:internal/modules/cjs/loader:981:32)
at Function.Module._load (node:internal/modules/cjs/loader:822:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:79:12) {
errno: -13,
syscall: ‘open’,
code: ‘EACCES’,
path: ‘/usr/lib/node_modules/mongodb-realm-cli/realm-cli’
I checked the owner of /usr/lib/node_modules
, it is “root:root”. I tried to change the owner, tried in sudo …Etc. Always the same error.
Any idea?
Thank you for your help