Error when installing on osx

Bug Reports
  • Hey there,

    Just trying to get started by testing this out on my local machine, but when I do the command

    npm install

    I get this error:
    npm http GET https://registry.npmjs.org/cron
    npm ERR! Error: SSL Error: CERT_UNTRUSTED
    npm ERR! at ClientRequest.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/request/main.js:440:26)
    npm ERR! at ClientRequest.g (events.js:185:14)
    npm ERR! at ClientRequest.EventEmitter.emit (events.js:88:17)
    npm ERR! at HTTPParser.parserOnIncomingClient [as onIncoming] (http.js:1445:7)
    npm ERR! at HTTPParser.parserOnHeadersComplete [as onHeadersComplete] (http.js:111:23)
    npm ERR! at CleartextStream.socketOnData [as ondata] (http.js:1356:20)
    npm ERR! at CleartextStream.CryptoStream._push (tls.js:396:27)
    npm ERR! at SecurePair.cycle (tls.js:750:20)
    npm ERR! at EncryptedStream.CryptoStream.write (tls.js:131:13)
    npm ERR! at Socket.ondata (stream.js:38:26)
    npm ERR! [Error: SSL Error: CERT_UNTRUSTED]
    npm ERR! You may report this log at:
    npm ERR! http://github.com/isaacs/npm/issues
    npm ERR! or email it to:
    npm ERR! [email protected]

    npm ERR! System Darwin 13.0.0
    npm ERR! command "/usr/local/bin/node" "/usr/local/bin/npm" "install"
    npm ERR! cwd /Volumes/HDD/Users/Brian/Sites/NodeBB
    npm ERR! node -v v0.8.2
    npm ERR! npm -v 1.1.36
    npm ERR! message SSL Error: CERT_UNTRUSTED

    as well as these:

    npm WARN optional dep failed, continuing mongodb@~1.3.19
    npm WARN optional dep failed, continuing [email protected]
    npm WARN optional dep failed, continuing hiredis@~0.1.15
    npm WARN optional dep failed, continuing [email protected]
    npm WARN optional dep failed, continuing [email protected]
    npm ERR!
    npm ERR! Additional logging details can be found in:
    npm ERR! /Volumes/HDD/Users/Brian/Sites/NodeBB/npm-debug.log
    npm ERR! not ok code 0

    since those last ones were optional I went ahead and tried the setup, but I get this:
    $> node app --setup

    module.js:340
    throw err;
    ^
    Error: Cannot find module 'nconf'
    at Function.Module._resolveFilename (module.js:338:15)
    at Function.Module._load (module.js:280:25)
    at Module.require (module.js:362:17)
    at require (module.js:378:17)
    at /Volumes/HDD/Users/Brian/Sites/NodeBB/app.js:23:14
    at Object.<anonymous> (/Volumes/HDD/Users/Brian/Sites/NodeBB/app.js:181:2)
    at Module._compile (module.js:449:26)
    at Object.Module._extensions..js (module.js:467:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)

    On a potentially unrelated note, am I supposed to have redis running during setup?
    EDIT: included npm http GET command right before the error occurs

  • On a potentially unrelated note, am I supposed to have redis running during setup?

    Yes, as some configs are written to the database during setup.

    Not sure about the npm errors. @julian?

  • It looks like a problem with npm, and it's definitely what's causing the issue when I try to start up. Looking into it now...

  • have a look here @BDHarrington7

    https://github.com/isaacs/npm/issues/4391

  • This has been resolved. I found a workaround here:

    Hope this helps someone!

  • haha okay. glad you figured it out 🙂 let us know the url to your nodebb instance so we can post it on our thread 🙂

  • @psychobunny for sure, as soon as I get it up 🙂


Suggested Topics


  • Image link error

    Bug Reports
    0 Votes
    12 Posts
    624 Views
  • Error (imagemagick + imgur)

    Bug Reports
    0 Votes
    6 Posts
    578 Views
  • 0 Votes
    8 Posts
    5557 Views
  • 0 Votes
    3 Posts
    1921 Views
  • 0 Votes
    6 Posts
    2055 Views