v3.x installation failure
Solved
Technical Support
-
I'm attempting to install 3.x by generally following the instructions here. I'm not very familiar with
node
and so far my attempts have not been successful.$ uname -srvm Linux 5.10.0-11-amd64 #1 SMP Debian 5.10.92-1 (2022-01-18) x86_64 $ node -v v18.16.0 $ npm -v 9.5.1 $ git clone -b v3.x https://github.com/NodeBB/NodeBB.git nodebb Cloning into 'nodebb'... remote: Enumerating objects: 262323, done. remote: Counting objects: 100% (1722/1722), done. remote: Compressing objects: 100% (673/673), done. remote: Total 262323 (delta 1139), reused 1607 (delta 1047), pack-reused 260601 Receiving objects: 100% (262323/262323), 80.10 MiB | 9.66 MiB/s, done. Resolving deltas: 100% (204884/204884), done. $ cd nodebb/ $ ./nodebb setup Dependencies outdated or not yet installed. Installing them now... npm WARN deprecated [email protected]: this library is no longer supported npm WARN deprecated [email protected]: Multer 1.x is affected by CVE-2022-24434. This is fixed in v1.4.4-lts.1 which drops support for versions of Node.js before 6. Please upgrade to at least Node.js 6 and version 1.4.4-lts.1 of Multer. If you need support for older versions of Node.js, we are open to accepting patches that would fix the CVE on the main 1.x release line, whilst maintaining compatibility with Node.js 0.10. Killed########⠂⠂⠂⠂⠂) ⠧ reify:path-key: http fetch GET 200 https://registry.npmj Error installing dependencies! message: Command failed: npm install --omit=dev stdout: null stderr: null /home/nodebb/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/nodebb/nodebb/src/cli/package-install.js:129:9) at Object.<anonymous> (/home/nodebb/nodebb/src/cli/index.js:52:18) at Module._compile (node:internal/modules/cjs/loader:1254:14) at Module._extensions..js (node:internal/modules/cjs/loader:1308:10) at Module.load (node:internal/modules/cjs/loader:1117:32) at Module._load (node:internal/modules/cjs/loader:958:12) at Module.require (node:internal/modules/cjs/loader:1141:19) { status: 137, signal: null, output: [ null, null, null ], pid: 286593, stdout: null, stderr: null } Node.js v18.16.0
Trying again fares no better:
$ ./nodebb setup Dependencies outdated or not yet installed. Installing them now... node:internal/modules/cjs/loader:1078 throw err; ^ Error: Cannot find module 'lodash' Require stack: - /home/nodebb/nodebb/src/cli/package-install.js - /home/nodebb/nodebb/src/cli/index.js - /home/nodebb/nodebb/nodebb at Module._resolveFilename (node:internal/modules/cjs/loader:1075:15) at Module._load (node:internal/modules/cjs/loader:920:27) at Module.require (node:internal/modules/cjs/loader:1141:19) at require (node:internal/modules/cjs/helpers:110:18) at pkgInstall.updatePackageFile (/home/nodebb/nodebb/src/cli/package-install.js:36:12) at Object.<anonymous> (/home/nodebb/nodebb/src/cli/index.js:50:18) at Module._compile (node:internal/modules/cjs/loader:1254:14) at Module._extensions..js (node:internal/modules/cjs/loader:1308:10) at Module.load (node:internal/modules/cjs/loader:1117:32) at Module._load (node:internal/modules/cjs/loader:958:12) { code: 'MODULE_NOT_FOUND', requireStack: [ '/home/nodebb/nodebb/src/cli/package-install.js', '/home/nodebb/nodebb/src/cli/index.js', '/home/nodebb/nodebb/nodebb' ] } Node.js v18.16.0
Manually using
npm i
didn't work either.Any ideas on what the problem could be?
-
512mb is probably fine if you setup swap and don't have a lot of traffic. If you get busy you will start running into issues. Rebuilding uses quite a bit of memory as well. Just run it and monitor your memory if you run into issues you can upgrade.
-
Copyright © 2024 NodeBB | Contributors