Error: Cannot find module './build/Release/magic'

  • [root@iZ94idsxhvpZ nodebb]# ./nodebb setup
    28/8 11:39 [31590] - info: NodeBB Setup Triggered via Command Line

    Welcome to NodeBB!

    This looks like a new installation, so you'll have to answer a few questions about your environment before we can proceed.
    Press enter to accept the default setting (shown in brackets).
    URL used to access this NodeBB (http://localhost:4567)
    Please enter a NodeBB secret (7f731fff-f776-48b2-8780-9b339b3bb68b)
    Which database to use (redis)

    28/8 11:39 [31590] - info: Now configuring redis database:
    Host IP or address of your Redis instance (
    Host port of your Redis instance (6379)
    Password of your Redis database
    Which database to use (0..n) (0)
    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...
    throw err;
    Error: Cannot find module './build/Release/magic'
    at Function.Module._resolveFilename (module.js:336:15)
    at Function.Module._load (module.js:278:25)
    at Module.require (module.js:365:17)
    at require (module.js:384:17)
    at Object.<anonymous> (/root/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)
    at Module.require (module.js:365:17)
    at require (module.js:384:17)

  • Hey man. Just use node.js version v0.10.40

    Enter in the console:
    nvm install 0.10.40
    nvm alias default 0.10.40

    And try again.

  • Admin

    npm i mmmagic



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