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

Unable to find node version 12.11.0 #215

Closed
ShubhaPradeep opened this issue Jun 30, 2022 · 7 comments
Closed

Unable to find node version 12.11.0 #215

ShubhaPradeep opened this issue Jun 30, 2022 · 7 comments
Labels
kind/bug Something isn't working lang/nodejs NodeJS Buildpacks

Comments

@ShubhaPradeep
Copy link

I got the below error during training when I was practicing the lab

WARNING: Failed to download Node.js version 12.11.0. You can specify the verison by setting the GOOGLE_RUNTIME_VERSION environment variable
[builder] Failure: (ID: 58e6a0ae) fetching https://dl.google.com/runtimes/nodejs/nodejs-12.11.0.tar.gz returned HTTP status: 404

@mxgit1090
Copy link

According to the test file

Add environment variable GOOGLE_RUNTIME_VERSION to 14.17.0 as below, and it works

pack build --builder=gcr.io/buildpacks/builder --env 'GOOGLE_RUNTIME_VERSION=14.17.0' sample-node

@spew
Copy link
Contributor

spew commented Jul 11, 2022

Can you help by posting the training / what app you are trying to deploy? I am trying to understand where the version 12.11.0 is coming from.

@spew spew added kind/bug Something isn't working lang/nodejs NodeJS Buildpacks labels Jul 11, 2022
@spew
Copy link
Contributor

spew commented Jul 11, 2022

Issue here is we need to backfill our versions of nodejs.

@ShubhaPradeep
Copy link
Author

I don't have access to the lab anymore. It was the cloud run lab assignment.

@paul-feng-github
Copy link
Collaborator

@ShubhaPradeep Do you have any special reason to use nodejs 12.11.0 but not other versions? This is an old version and there is some issues with the release of 12.11.0 tarball nodejs/node#29709. I suggest use a newer version.

@ShubhaPradeep
Copy link
Author

I don't have access to lab, I got the error when I attended cloud run training and I was practicing my lab the next day.

@paul-feng-github
Copy link
Collaborator

Added nodejs 12.11.0, it should be available from now

gcf-merge-on-green bot pushed a commit to GoogleCloudPlatform/cloud-code-samples that referenced this issue Aug 15, 2022
running `skaffold build -p buildpacks` in the `nodejs/nodejs-guestbook` app from an M1 Mac always results in the following error:
```
...

[builder] npm ERR! A complete log of this run can be found in:
[builder] npm ERR!     /home/cnb/.npm/_logs/2022-07-30T07_44_41_031Z-debug-0.log
[builder] --------------------------------------------------------------------------------
[builder] Sorry your project couldn't be built.
[builder] Our documentation explains ways to configure Buildpacks to better recognise your project:
[builder]  -> https://github.com/GoogleCloudPlatform/buildpacks/blob/main/README.md
[builder] If you think you've found an issue, please report it:
[builder]  -> https://github.com/GoogleCloudPlatform/buildpacks/issues/new
[builder] --------------------------------------------------------------------------------
[builder] ERROR: failed to build: exit status 1
```
Setting the nodejs version explicitly according to GoogleCloudPlatform/buildpacks#215 fixes the issue.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working lang/nodejs NodeJS Buildpacks
Projects
None yet
Development

No branches or pull requests

4 participants