Unsolved NODEBB forum installation failed


  • I tried to install a local nodebb site (on a computer with Windows).
    I downloaded the latest version of NodeBB from github:

    git clone https://github.com/NodeBB/NodeBB NodeBB22
    

    and then:

    cd Nodebb22
    

    Then the installation command:

    nodebb
    

    But the installation fails ... 😞
    Here is the full error log:

    C:\Users\Administrator\NodeBB22>nodebb
    package.json not found.
    Populating package.json...
    OK
    Dependencies outdated or not yet installed.
    Installing them now...
    
    npm WARN deprecated [email protected]: request-promise-native has been deprecated because it extends the now deprecated request package, see https://github.com/request/request/issues/3142
    npm WARN deprecated [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142
    npm WARN deprecated [email protected]: support for ECMAScript is superseded by `uglify-js` as of v3.13.0
    npm WARN deprecated [email protected]: You can find the new Popper v2 at @popperjs/core, this package is dedicated to the legacy v1
    npm WARN deprecated [email protected]: this library is no longer supported
    npm WARN deprecated [email protected]: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
    
    > [email protected] install C:\Users\Administrator\NodeBB22\node_modules\sharp
    > (node install/libvips && node install/dll-copy && prebuild-install) || (node install/can-compile && node-gyp rebuild && node install/dll-copy)
    
    sharp: Using cached C:\Users\Administrator\AppData\Roaming\npm-cache\_libvips\libvips-8.11.3-win32-x64.tar.br
    sharp: Creating C:\Users\Administrator\NodeBB22\node_modules\sharp\build\Release
    sharp: Copying DLLs from C:\Users\Administrator\NodeBB22\node_modules\sharp\vendor\8.11.3\win32-x64\lib to C:\Users\Administrator\NodeBB22\node_modules\sharp\build\Release
    
    > [email protected] postinstall C:\Users\Administrator\NodeBB22\node_modules\core-js-pure
    > node -e "try{require('./postinstall')}catch(e){}"
    
    Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!
    
    The project needs your help! Please consider supporting of core-js:
    > https://opencollective.com/core-js
    > https://patreon.com/zloirock
    > https://paypal.me/zloirock
    > bitcoin: bc1qlea7544qtsmj2rayg0lthvza9fau63ux0fstcz
    
    Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)
    
    npm notice created a lockfile as package-lock.json. You should commit this file.
    npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected]~2.3.2 (node_modules\chokidar\node_modules\fsevents):
    npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
    npm WARN [email protected] requires a peer of [email protected]^0.14.2 but none is installed. You must install peer dependencies yourself.
    npm WARN @apidevtools/[email protected] requires a peer of [email protected]>=7 but none is installed. You must install peer dependencies yourself.
    
    added 612 packages from 947 contributors and audited 1166 packages in 42.415s
    
    40 packages are looking for funding
      run `npm fund` for details
    
    found 1 moderate severity vulnerability
      run `npm audit fix` to fix them, or `npm audit` for details
    OK
    
    2021-11-29T19:00:17.141Z [7072] - error: uncaughtException: require(...).webInstall is not a function
    TypeError: require(...).webInstall is not a function
        at Object.<anonymous> (C:\Users\Administrator\NodeBB22\src\cli\index.js:110:21)
        at Module._compile (internal/modules/cjs/loader.js:1063:30)
        at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)
        at Module.load (internal/modules/cjs/loader.js:928:32)
        at Function.Module._load (internal/modules/cjs/loader.js:769:14)
        at Module.require (internal/modules/cjs/loader.js:952:19)
        at require (internal/modules/cjs/helpers.js:88:18)
        at Object.<anonymous> (C:\Users\Administrator\NodeBB22\nodebb:5:1)
        at Module._compile (internal/modules/cjs/loader.js:1063:30)
        at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10) {"date":"Mon Nov 29 2021 19:00:17 GMT+0000 (GMT)","error":{},"exception":true,"os":{"loadavg":[0,0,0],"uptime":91341},"process":{"argv":["C:\\Program Files\\nodejs\\node.exe","C:\\Users\\Administrator\\NodeBB22\\nodebb"],"cwd":"C:\\Users\\Administrator\\NodeBB22","execPath":"C:\\Program Files\\nodejs\\node.exe","gid":null,"memoryUsage":{"arrayBuffers":1168068,"external":3717229,"heapTotal":26152960,"heapUsed":18380200,"rss":72265728},"pid":7072,"uid":null,"version":"v14.16.1"},"stack":"TypeError: require(...).webInstall is not a function\n    at Object.<anonymous> (C:\\Users\\Administrator\\NodeBB22\\src\\cli\\index.js:110:21)\n    at Module._compile (internal/modules/cjs/loader.js:1063:30)\n    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)\n    at Module.load (internal/modules/cjs/loader.js:928:32)\n    at Function.Module._load (internal/modules/cjs/loader.js:769:14)\n    at Module.require (internal/modules/cjs/loader.js:952:19)\n    at require (internal/modules/cjs/helpers.js:88:18)\n    at Object.<anonymous> (C:\\Users\\Administrator\\NodeBB22\\nodebb:5:1)\n    at Module._compile (internal/modules/cjs/loader.js:1063:30)\n    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)","trace":[{"column":21,"file":"C:\\Users\\Administrator\\NodeBB22\\src\\cli\\index.js","function":null,"line":110,"method":null,"native":false},{"column":30,"file":"internal/modules/cjs/loader.js","function":"Module._compile","line":1063,"method":"_compile","native":false},{"column":10,"file":"internal/modules/cjs/loader.js","function":"Module._extensions..js","line":1092,"method":".js","native":false},{"column":32,"file":"internal/modules/cjs/loader.js","function":"Module.load","line":928,"method":"load","native":false},{"column":14,"file":"internal/modules/cjs/loader.js","function":"Module._load","line":769,"method":"_load","native":false},{"column":19,"file":"internal/modules/cjs/loader.js","function":"Module.require","line":952,"method":"require","native":false},{"column":18,"file":"internal/modules/cjs/helpers.js","function":"require","line":88,"method":null,"native":false},{"column":1,"file":"C:\\Users\\Administrator\\NodeBB22\\nodebb","function":null,"line":5,"method":null,"native":false},{"column":30,"file":"internal/modules/cjs/loader.js","function":"Module._compile","line":1063,"method":"_compile","native":false},{"column":10,"file":"internal/modules/cjs/loader.js","function":"Module._extensions..js","line":1092,"method":".js","native":false}]}
    2021-11-29T19:00:17.147Z [7072] - error: uncaughtException: require(...).webInstall is not a function
    TypeError: require(...).webInstall is not a function
        at Object.<anonymous> (C:\Users\Administrator\NodeBB22\src\cli\index.js:110:21)
        at Module._compile (internal/modules/cjs/loader.js:1063:30)
        at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)
        at Module.load (internal/modules/cjs/loader.js:928:32)
        at Function.Module._load (internal/modules/cjs/loader.js:769:14)
        at Module.require (internal/modules/cjs/loader.js:952:19)
        at require (internal/modules/cjs/helpers.js:88:18)
        at Object.<anonymous> (C:\Users\Administrator\NodeBB22\nodebb:5:1)
        at Module._compile (internal/modules/cjs/loader.js:1063:30)
        at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10) {"date":"Mon Nov 29 2021 19:00:17 GMT+0000 (GMT)","error":{},"exception":true,"os":{"loadavg":[0,0,0],"uptime":91341},"process":{"argv":["C:\\Program Files\\nodejs\\node.exe","C:\\Users\\Administrator\\NodeBB22\\nodebb"],"cwd":"C:\\Users\\Administrator\\NodeBB22","execPath":"C:\\Program Files\\nodejs\\node.exe","gid":null,"memoryUsage":{"arrayBuffers":1168092,"external":3717293,"heapTotal":26152960,"heapUsed":18511488,"rss":73388032},"pid":7072,"uid":null,"version":"v14.16.1"},"stack":"TypeError: require(...).webInstall is not a function\n    at Object.<anonymous> (C:\\Users\\Administrator\\NodeBB22\\src\\cli\\index.js:110:21)\n    at Module._compile (internal/modules/cjs/loader.js:1063:30)\n    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)\n    at Module.load (internal/modules/cjs/loader.js:928:32)\n    at Function.Module._load (internal/modules/cjs/loader.js:769:14)\n    at Module.require (internal/modules/cjs/loader.js:952:19)\n    at require (internal/modules/cjs/helpers.js:88:18)\n    at Object.<anonymous> (C:\\Users\\Administrator\\NodeBB22\\nodebb:5:1)\n    at Module._compile (internal/modules/cjs/loader.js:1063:30)\n    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)","trace":[{"column":21,"file":"C:\\Users\\Administrator\\NodeBB22\\src\\cli\\index.js","function":null,"line":110,"method":null,"native":false},{"column":30,"file":"internal/modules/cjs/loader.js","function":"Module._compile","line":1063,"method":"_compile","native":false},{"column":10,"file":"internal/modules/cjs/loader.js","function":"Module._extensions..js","line":1092,"method":".js","native":false},{"column":32,"file":"internal/modules/cjs/loader.js","function":"Module.load","line":928,"method":"load","native":false},{"column":14,"file":"internal/modules/cjs/loader.js","function":"Module._load","line":769,"method":"_load","native":false},{"column":19,"file":"internal/modules/cjs/loader.js","function":"Module.require","line":952,"method":"require","native":false},{"column":18,"file":"internal/modules/cjs/helpers.js","function":"require","line":88,"method":null,"native":false},{"column":1,"file":"C:\\Users\\Administrator\\NodeBB22\\nodebb","function":null,"line":5,"method":null,"native":false},{"column":30,"file":"internal/modules/cjs/loader.js","function":"Module._compile","line":1063,"method":"_compile","native":false},{"column":10,"file":"internal/modules/cjs/loader.js","function":"Module._extensions..js","line":1092,"method":".js","native":false}]}
    C:\Users\Administrator\NodeBB22>
    

    Thank you so much for all the support! 😘

  • NodeBB

  • GNU/Linux Gamers

    did you just type nodebbor ./nodebb install?

  • Global Moderator Plugin & Theme Dev

    @dunlix either way, if you don't have a config.json, it starts the web installer:

    https://github.com/NodeBB/NodeBB/blob/fb363957d1ff8ac63c0a50aaeeb2dd86975876bc/src/cli/index.js#L109

Suggested Topics

  • 22
  • 1
  • 8
  • 6
  • 3
| |