Skip to content

Error: Command failed: npm -s ci --production --no-audit --prefix /tmp/build-lambda #537

Description

@vikash-aquera

Hi team,
We are trying to deploy using node-lambda. We are getting below error
node-lambda deploy -a $AWS_ACCESS_KEY_ID_LABS -s $AWS_SECRET_ACCESS_KEY_LABS -n "$AWS_FUNCTION_NAME"_Test -e "" -f deploy.env -o "$AWS_ROLE_DEV"
=> Moving files to temporary directory
=> Running npm ci --production
Error: Command failed: npm -s ci --production --no-audit --prefix /tmp/build-lambda
at ChildProcess.exithandler (child_process.js:303:12)
at ChildProcess.emit (events.js:310:20)
at ChildProcess.EventEmitter.emit (domain.js:482:12)
at maybeClose (internal/child_process.js:1021:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:286:5)
at Process.onexit (/var/lang/lib/node_modules/node-lambda/node_modules/async-listener/glue.js:188:31) {
killed: false,
code: 1,
signal: null,
cmd: 'npm -s ci --production --no-audit --prefix /tmp/build-lambda'
}
This issue seems to be because of npm-shrinkwrap.json. It is not able to build when the package has npm-shrinkwrap.json
Please look into this issue. Deployment is failing into production so it is very critical for us.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions