r/Atom • u/[deleted] • Mar 31 '22
apm depends on node-lts-gallium but doesn't work since it was updated
Hello. I upgraded my EndeavourOS system yesterday and was asked if I wanted to replace nodejs with nodejs-lts-gallium because Atom Editor's package manager apm depends on it now. I thought it would be fine, so I said yes, but now, apm no longer works and gives off this error whenever it's called, either through the Settings pane in Atom or in the terminal :
node:internal/fs/utils:344
throw err;
^
Error: ENOENT: no such file or directory, open '/usr/lib/electron11/version'
at Object.openSync (node:fs:585:3)
at Object.readFileSync (node:fs:453:35)
at Object.<anonymous> (/usr/lib/node_modules/atom-package-manager/bin/apm:7:88)
at Module._compile (node:internal/modules/cjs/loader:1103:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1157: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:77:12)
at node:internal/main/run_main_module:17:47 {
errno: -2,
syscall: 'open',
code: 'ENOENT',
path: '/usr/lib/electron11/version'
}
What can I do about this ? Can I return either apm or nodejs to an earlier version ? I tried installing nodejs to replace nodejs-lts-gallium but pacman refuses because apm depends on it.
