npm install aws-lambda-ric --save throwing error

Open
#3 7 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
node.js, shell
Domain
build-system

Research direction

The failure is reported from scripts/preinstall.sh during npm install aws-lambda-ric --save on Windows. Start by reading that script and reproducing the command in the reported environment; done means the package installs successfully outside Docker without the preinstall failure.

Written by the indexing model from the issue text.

Description

bug

This error occurs when trying to install outside of a dockerfile.

When trying to npm install aws-lambda-ric --save, the following error is thrown:

1606 verbose stack Error: aws-lambda-ric@1.0.0 preinstall: ./scripts/preinstall.sh
1606 verbose stack Exit status 1
1606 verbose stack at EventEmitter. (C:\Users\User\AppData\Roaming\npm\node_modules\npm\node_modules\npm-lifecycle\index.js:332:16)
1606 verbose stack at EventEmitter.emit (events.js:189:13)
1606 verbose stack at ChildProcess. (C:\Users\User\AppData\Roaming\npm\node_modules\npm\node_modules\npm-lifecycle\lib\spawn.js:55:14)
1606 verbose stack at ChildProcess.emit (events.js:189:13)
1606 verbose stack at maybeClose (internal/child_process.js:970:16)
1606 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5)
1607 verbose pkgid aws-lambda-ric@1.0.0
1608 verbose cwd C:\Users\User\source\repos\aws-lambda-container\myProj\hello-world
1609 verbose Windows_NT 10.0.18363
1610 verbose argv "C:\Program Files\nodejs\node.exe" "C:\Users\User\AppData\Roaming\npm\node_modules\npm\bin\npm-cli.js" "install" "aws-lambda-ric" "--save"
1611 verbose node v10.15.3
1612 verbose npm v6.14.9
1613 error code ELIFECYCLE
1614 error errno 1
1615 error aws-lambda-ric@1.0.0 preinstall: ./scripts/preinstall.sh
1615 error Exit status 1
1616 error Failed at the aws-lambda-ric@1.0.0 preinstall script.
1616 error This is probably not a problem with npm. There is likely additional logging output above.
1617 verbose exit [ 1, true ]

Dominant language
TypeScript
Stars
224
Forks
60
Avg merge
26m
Merged PRs (30d)
2

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from aws/aws-lambda-nodejs-runtime-interface-client

All issues in aws/aws-lambda-nodejs-runtime-interface-client

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.