Npm error while sls deploy to Azure

Hi guys,

I’m trying to run sls deploy and I’m getting the following error:

18:59:37 Error: npm install failed with code 1
18:59:37 at ChildProcess. (/Users/m15427/jenkins/azurenode/workspace/morpheus-expr-be_devops-pipeline/node_modules/serverless-webpack/lib/utils.js:91:16)
18:59:37 at ChildProcess.emit (node:events:379:20)
18:59:37 at ChildProcess.EventEmitter.emit (node:domain:470:12)
18:59:37 at maybeClose (node:internal/child_process:1069:16)
18:59:37 at Process.ChildProcess._handle.onexit (node:internal/child_process:300:5)

can you please advice?

When I’m running manually from the build machine it creates a deployment and finishes with a different error:

Serverless: Uploading file at ‘/Users/m15427/jenkins/azurenode/workspace/morpheus-expr-be_devops-pipeline/.serverless/morpheus.zip’ to container ‘deployment-artifacts’ with name ‘slseusdevmorpheus-ARTIFACT-t1630425833977.zip’
Serverless: Finished uploading blob
Serverless: → Function package uploaded successfully
Serverless: Deployed serverless functions:
Serverless: → Unable to retrieve function app list

Error ---------------------------------------------------

Error: write EPROTO 4512394688:error:1408F10B:SSL routines:ssl3_get_record:wrong version number:…/deps/openssl/openssl/ssl/record/ssl3_record.c:332:

  at WriteWrap.onWriteComplete [as oncomplete] (internal/stream_base_commons.js:94:16)

 For debugging logs, run again after setting the "SLS_DEBUG=*" environment variable.