How to install without Internet?



  • How can I install nodeBB without any Internet connection? I would like to set up a forum in our school's local network. I could get the ubuntu package images, but it's no way for me to connect to npm or github.


  • Admin

    @realZ You'll want to:

    1. git clone the repo on to your own computer
    2. Run npm i
    3. Also run npm i mongodb connect-mongo for Mongo, or npm i redis connect-redis for Redis
    4. Compress node_modules/ via tar (or winzip, really, anything works as long as the receiving end can decompress it)
    5. Copy the archive over to the server with no outside access to the internet
    6. 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
        redis@0.10.3 node_modules/redis
        connect-redis@2.0.0 node_modules/connect-redis
        └── debug@2.2.0 (ms@0.7.1)
        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:

    connect-redis@2.0.0 node_modules/connect-redis
    └── debug@2.2.0 (ms@0.7.1)
    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?


  • Admin

    @realZ It shouldn't require an internet connection....



  • @julian
    Just do all the stuff from the scratch solve all the problem.😃


Log in to reply
 


Looks like your connection to NodeBB was lost, please wait while we try to reconnect.