How to install without Internet?
-
@realZ You'll want to:
- git clone the repo on to your own computer
- Run
npm i
- Also run
npm i mongodb connect-mongo
for Mongo, ornpm i redis connect-redis
for Redis - Compress
node_modules/
via tar (or winzip, really, anything works as long as the receiving end can decompress it) - Copy the archive over to the server with no outside access to the internet
- Decompress the archive into the NodeBB installation directory
-
@julian
I followed the steps. However, when I tried to setup the forum from either web or command line, the following error occured:11/9 15:27 [9907] - info: Now configuring redis database: Configuration Saved OK [email protected] node_modules/redis [email protected] node_modules/connect-redis └── [email protected] ([email protected]) Populating database with default configs, if not already set... module.js:522 var nodePath = process.env['NODE_PATH']; ^ Error: Module did not self-register. at Error (native) at Module.load (module.js:355:32) at Function.Module._load (module.js:310:12) at Module.require (module.js:365:17) at require (module.js:384:17) at Object.<anonymous> (/home/NodeBB/node_modules/mmmagic/index.js:3:13) at Module._compile (module.js:460:26) at Object.Module._extensions..js (module.js:478:10) at Module.load (module.js:355:32) at Function.Module._load (module.js:310:12)
No idea what's going on here.
-
Well, I just figure out that all I need to do is
npm rebuild
, and I could proceed. However, when I tried to setup, it stucks here:[email protected] node_modules/connect-redis └── [email protected] ([email protected]) Populating database with default configs, if not already set... Enabling default theme: Persona No categories found, populating instance with default categories
Does this need any Internet connection to continue?
Copyright © 2024 NodeBB | Contributors