I cannot install NodeBB on MAC. Please can someone tell me what to do ?



  • I cannot install NodeBB on MAC. Please can someone tell me what to do ?

    This is the error that I got after executing this command : npm install

    npm ERR! Darwin 10.8.0
    npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install"
    npm ERR! node v5.1.0
    npm ERR! npm v3.3.12
    npm ERR! code ELIFECYCLE

    npm ERR! heapdump@0.3.7 install: node-gyp rebuild
    npm ERR! Exit status 1
    npm ERR!
    npm ERR! Failed at the heapdump@0.3.7 install script 'node-gyp rebuild'.
    npm ERR! Make sure you have the latest version of node.js and npm installed.
    npm ERR! If you do, this is most likely a problem with the heapdump package,
    npm ERR! not with npm itself.
    npm ERR! Tell the author that this fails on your system:
    npm ERR! node-gyp rebuild
    npm ERR! You can get their info via:
    npm ERR! npm owner ls heapdump
    npm ERR! There is likely additional logging output above.

    npm ERR! Please include the following file with any support request:
    npm ERR! /Users/larshetmank/NodeBB/npm-debug.log


  • Community Rep

    You're on a very recent version of node, it might help to revert to an earlier version if googling that error shows either nothing useful or that it's incompatible.

    Do you use nvm? Did you try an npm rebuild first?



  • You are using a dev branch version of node. Install 4.5.1. I have no issue running nodebb on my macs



  • thanks for your help. But even if installed an other node version, I get always the same error. Can someone help me. I really need to make install it on my mac:

    macbook-pro-4:NodeBB larshetmank$ npm install
    \

    heapdump@0.3.7 install /Users/larshetmank/NodeBB/node_modules/heapdump
    node-gyp rebuild

    CXX(target) Release/obj.target/addon/src/heapdump.o
    cc1plus: error: unrecognized command line option "-std=gnu++0x"
    make: *** [Release/obj.target/addon/src/heapdump.o] Error 1
    gyp ERR! build error
    gyp ERR! stack Error: make failed with exit code: 2
    gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:270:23)
    gyp ERR! stack at emitTwo (events.js:87:13)
    gyp ERR! stack at ChildProcess.emit (events.js:172:7)
    gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)
    gyp ERR! System Darwin 10.8.0
    gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
    gyp ERR! cwd /Users/larshetmank/NodeBB/node_modules/heapdump
    gyp ERR! node -v v4.2.2
    gyp ERR! node-gyp -v v3.0.3
    gyp ERR! not ok
    npm ERR! Darwin 10.8.0
    npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install"
    npm ERR! node v4.2.2
    npm ERR! npm v2.14.7
    npm ERR! code ELIFECYCLE

    npm ERR! heapdump@0.3.7 install: node-gyp rebuild
    npm ERR! Exit status 1
    npm ERR!
    npm ERR! Failed at the heapdump@0.3.7 install script 'node-gyp rebuild'.
    npm ERR! This is most likely a problem with the heapdump package,
    npm ERR! not with npm itself.
    npm ERR! Tell the author that this fails on your system:
    npm ERR! node-gyp rebuild
    npm ERR! You can get their info via:
    npm ERR! npm owner ls heapdump
    npm ERR! There is likely additional logging output above.

    npm ERR! Please include the following file with any support request:
    npm ERR! /Users/larshetmank/NodeBB/npm-debug.log


  • Community Rep

    @BDHarrington7 said:

    Did you try an npm rebuild first?


Log in to reply
 


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