-
-
Notifications
You must be signed in to change notification settings - Fork 8k
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
nvm errors out with exit status 3 in aws code build #3122
Comments
Script in pipeline 1 (where we download all nvm, node and copy in aws s3 bucket) -
|
Script which copies S3 .nvm folder in root folder of aws code build and then does nvm use of specific node version (pipeline 2) -
|
Note that the scripts were REALLY unclear with single backticks; i edited it to triple backticks so newlines render properly. |
Where exactly does the failure happen? What's the failure output? |
@ljharb Failure happing in aws code build in cicd pipeline. Above pasted shell scripts needed install third party dependencies but same working in one code build but when copied in the same in other aws code build it is throwing exit 3 error. Please assist |
@ljharb Failure output mentioned below - |
is it the sourcing that exits 3, or the |
@ljharb issue when downloading node using nvm. |
that command doesn't download node. it sources nvm.sh, and then uses an already-installed version. |
@ljharb Please assist why exit status 3 error? |
I have no idea. You told me that Perhaps you're setting the |
Error message -
[Container] 2023/06/02 12:24:31 Command did not exit successfully . "$NVM_DIR/nvm.sh" && nvm use 14.17.0 exit status 3
We have aws pipeline with nodejs runtime in it.
We have done below -
It works fine in aws code build. But when runs other script to copy the S3 .nvm folder in aws code build(other pipeline) instance causes exist 3 issue. Refer script below -
The text was updated successfully, but these errors were encountered: