admin `npm
node:internal/modules/cjs/loader:1228
throw err;
^
Error: Cannot find module '/usr/local/devil/node22/bin/node_modules/npm/bin/npm-prefix.js'
at Function.resolveFilename (node:internal/modules/cjs/loader:1225:15)
at Function.load (node:internal/modules/cjs/loader:1055:27)
at TracingChannel.traceSync (node:diagnostics_channel:322:14)
at wrapModuleLoad (node:internal/modules/cjs/loader:220:24)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:170:5)
at node:internal/main/run_main_module:36:49 {
code: 'MODULE_NOT_FOUND',
requireStack: []
}
Node.js v22.14.0
Could not determine Node.js install directory`
It got removed from the .npm-global completely after the upgrade command and then i tried to re-upload it externally.
This happens every time I run any npm command.
Is it globally deleted for everyone?
Also, how do I upgrade all domains to node23?