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

General Discussion
  • [[email protected] 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 (127.0.0.1)
    Host port of your Redis instance (6379)
    Password of your Redis database
    Which database to use (0..n) (0)
    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:338
    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.

  • npm i mmmagic


Suggested Topics


  • 0 Votes
    5 Posts
    413 Views

  • Error

    General Discussion
    0 Votes
    2 Posts
    247 Views

  • Solved General Discussion
    0 Votes
    5 Posts
    1508 Views

  • 0 Votes
    1 Posts
    1894 Views

  • 0 Votes
    6 Posts
    2327 Views

| | | |