Install failed on Ubuntu 22.04
Solved
Technical Support
-
My NodeBB installation is failing on a fresh Ubuntu 22.04 digitalocean's droplet. I've googled but I found nothing helps.
/home/septian/nodebb/src/cli/package-install.js:138 throw e; ^ Error: Command failed: npm install --omit=dev at checkExecSyncError (node:child_process:885:11) at Object.execSync (node:child_process:957:15) at pkgInstall.installAll (/home/septian/nodebb/src/cli/package-install.js:129:9) at Object.<anonymous> (/home/septian/nodebb/src/cli/index.js:52:18) at Module._compile (node:internal/modules/cjs/loader:1256:14) at Module._extensions..js (node:internal/modules/cjs/loader:1310:10) at Module.load (node:internal/modules/cjs/loader:1119:32) at Module._load (node:internal/modules/cjs/loader:960:12) at Module.require (node:internal/modules/cjs/loader:1143:19) { status: 1, signal: null, output: [ null, null, null ], pid: 13232, stdout: null, stderr: null }
I have no idea what's this error is about. And when I try to run
./nodebb setup
command again, it is now refusing to do so and give different error.Dependencies outdated or not yet installed. Installing them now... node:internal/modules/cjs/loader:1080 throw err; ^ Error: Cannot find module 'lodash' Require stack: - /home/septian/nodebb/src/cli/package-install.js - /home/septian/nodebb/src/cli/index.js - /home/septian/nodebb/nodebb at Module._resolveFilename (node:internal/modules/cjs/loader:1077:15) at Module._load (node:internal/modules/cjs/loader:922:27) at Module.require (node:internal/modules/cjs/loader:1143:19) at require (node:internal/modules/cjs/helpers:110:18) at pkgInstall.updatePackageFile (/home/septian/nodebb/src/cli/package-install.js:36:12) at Object.<anonymous> (/home/septian/nodebb/src/cli/index.js:50:18) at Module._compile (node:internal/modules/cjs/loader:1256:14) at Module._extensions..js (node:internal/modules/cjs/loader:1310:10) at Module.load (node:internal/modules/cjs/loader:1119:32) at Module._load (node:internal/modules/cjs/loader:960:12) { code: 'MODULE_NOT_FOUND', requireStack: [ '/home/septian/nodebb/src/cli/package-install.js', '/home/septian/nodebb/src/cli/index.js', '/home/septian/nodebb/nodebb' ] } Node.js v18.17.0
Anyone can help? Thanks
-
After rechecking, and redoing the same steps with new droplet with bigger RAM, it works. So I guess it's because I was using the $4 vps and the ram wasn't enough
-
After rechecking, and redoing the same steps with new droplet with bigger RAM, it works. So I guess it's because I was using the $4 vps and the ram wasn't enough
-
Copyright © 2024 NodeBB | Contributors