When i run "nodebb setup" this error gives me, plz help
-
throw e;
^Error: Command failed: npm install --production
at checkExecSyncError (node:child_process:707:11)
at Object.execSync (node:child_process:744:15)
at Object.installAll (C:\Users\anirb\Desktop\nodebb\src\cli\package-install.js:72:9)
at Object.<anonymous> (C:\Users\anirb\Desktop\nodebb\src\cli\index.js:62:18)
at Module._compile (node:internal/modules/cjs/loader:1109:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1138:10)
at Module.load (node:internal/modules/cjs/loader:989:32)
at Function.Module._load (node:internal/modules/cjs/loader:829:14)
at Module.require (node:internal/modules/cjs/loader:1013:19)
at require (node:internal/modules/cjs/helpers:93:18) {
status: 1,
signal: null,
output: [ null, null, null ],
pid: 2692,
stdout: null,
stderr: null
} -
Can you provide the full output of running the command?
-
@dunlix we strongly recommend NOT to run
./nodebb ...
commands as admin. -
@dunlix running nodebb with sudo places your server under unnecessary security risk. We strongly recommend against it.