Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: prevent error by running pnpm #641

Merged
merged 2 commits into from
Nov 8, 2023
Merged

Conversation

drskur
Copy link
Contributor

@drskur drskur commented Nov 8, 2023

When I created infrastructure project using pnpm, the pipeline ran pnpm and the following error occurred.

|[Container] 2023/10/25 07:42:20.717048 Running command npx projen install|
|25|npm WARN exec The following package was not found and will be installed: [email protected]|
|26|/bin/sh: 1: pnpm: not found|
|27|👾 unable to evaluate environment variable PATH=$(pnpm -c exec "node --print process.env.PATH"): unknown error|
|28||
|29|[Container] 2023/10/25 07:42:27.864655 Command did not exit successfully npx projen install exit status 1|
|30|[Container] 2023/10/25 07:42:27.867954 Phase complete: INSTALL State: FAILED|
|31|[Container] 2023/10/25 07:42:27.867971 Phase context status code: COMMAND_EXECUTION_ERROR Message: Error while executing command: npx projen install. Reason: exit status 1|

This patch makes the Synth process take a little longer, but it can fix the problem easily and reliably.

@cogwirrel cogwirrel merged commit 5656950 into aws:mainline Nov 8, 2023
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants