Hi all! New to the Forum and to Serverless. I’m trying to do the quickstart and I’ve followed the directions. When I execute serverless deploy -v I get:
Error --------------------------------------------------
ServerlessError: ServerlessError: unable to get local
issuer certificate
For debugging logs, run again after setting the "SLS_DEBUG=*" environment variable.
Stack Trace --------------------------------------------
Error: ServerlessError: ServerlessError: unable to get local issuer certificate
at module.exports.logError.errorHandlingError (/usr/local/lib/node_modules/serverless/lib/classes/Error.js:93:11)
at BbPromise.resolve.then.catch.e (/usr/local/lib/node_modules/serverless/bin/serverless:26:3)
at runCallback (timers.js:672:20)
at tryOnImmediate (timers.js:645:5)
at processImmediate [as _immediateCallback] (timers.js:617:5)
From previous event:
at __dirname (/usr/local/lib/node_modules/serverless/bin/serverless:24:9)
at Object. (/usr/local/lib/node_modules/serverless/bin/serverless:27:4)
at Module._compile (module.js:570:32)
at Object.Module._extensions…js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
at Module.runMain (module.js:604:10)
at run (bootstrap_node.js:390:7)
at startup (bootstrap_node.js:150:9)
at bootstrap_node.js:505:3
I’m using AWS Profiles and can execute AWS-CLI without any cert issues. I’ve poured through the documentation and can’t figure it out. I assume (maybe incorrectly) that if the AWS-CLI can connect then Serverless set to use the profile should as well. Thanks!
So just an update I made sure that the cert was correct for Node.js and verified that I could install packages from NPM to make sure it wasn’t at that lever. That worked. I then reran sls deploy and got the same error. I ran sudo sls deploy and it seems to get a little further then:
Serverless: Packaging service…
Serverless: Excluding development dependencies…
Serverless Error ---------------------------------------
ServerlessError: unable to get local issuer certificate
Get Support --------------------------------------------
Docs:
Your Environment Information -----------------------------
OS: darwin
Node Version: 6.10.3
Serverless Version: 1.24.1
Same issue - just a little further along…