Upgrading node on code catalyst...

1

Whats the correct way to ugrade node on code-catalyst? I kind of thought that part of the appeal of code catalyst was it woud look after upgrades, but node is on v16, and about to go out of support

profile picture
posta 9 mesi fa566 visualizzazioni
8 Risposte
1

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !! !! !! Node 16 has reached end-of-life on 2023-09-11 and is not supported. !! !! Please upgrade to a supported node version as soon as possible. !! !! !! !! This software is currently running on node v16.20.1. !! !! As of the current release of this software, supported node releases are: !! !! - ^20.0.0 (Planned end-of-life: 2026-04-30) !! !! - ^18.0.0 (Planned end-of-life: 2025-04-30) !! !! !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

profile picture
con risposta 8 mesi fa
0

This is'nt for my actions.. I want to upgrade node in the dev environment

profile picture
con risposta 9 mesi fa
0

I havent done it, but maybe this guide helps? https://repost.aws/articles/ARBTATztMgQOeYyMZ9IAmxDw/configuring-codecatalyst-dev-environments

It shows you how to customize your dev environment using the devfile.yaml and if I read it correctly it should allow you to update node aswell!

And of course - your package.json also needs to then use the newer node version...?

profile picture
con risposta 9 mesi fa
0

I coud'tn figure out a way @Lockhead

profile picture
con risposta 9 mesi fa
0

I'll point the team to this to see if they can provide any further updates.

profile picture
con risposta 4 mesi fa
0

Hi there, Amazon CodeCatalyst now supports Node 18 and Node 20 with Devfile images 3.0. You can find more details at [here]. Please feel free to reach out if you encounter any issues while upgrading the devfile image

AWS
ESPERTO
con risposta 4 mesi fa
0

The Devfile is used for Dev Environment in CodeCatalyst. What we need is Workflows Compute (EC2 fleet) for build Actions which support Node 18 | 20. CodeCatalyst only provides the Amazon Linux 2 Operating system on-demand fleets at the moment and this OS uses Node 16, not able to upgrade

Now using node v18.19.0
/tmp/codecatalyst/binaries/nvm/versions/node/v18.19.0/bin/node
node: /lib64/libm.so.6: version `GLIBC_2.27' not found (required by node)
node: /lib64/libc.so.6: version `GLIBC_2.28' not found (required by node)

profile picture
Vu Dao
con risposta 4 mesi fa
-1

Hello, there are a few options at the moment for running a build action using a later version of node. We are working to provide additional options around this as node.js 16 approaches its end of life date. We will share more information about that when we can.

For now, you could

  1. Download the version of node you want to use in the first step of your action (this will take time)
  2. Use your own build image
  3. Use the ARM image if it fits for your use case. This uses node18.

There’s more information about this topic here.

AWS
MODERATORE
AWS-Jay
con risposta 9 mesi fa
  • Amazon Linux 2 does not support node v18

    Now using node v18.19.0
    /tmp/codecatalyst/binaries/nvm/versions/node/v18.19.0/bin/node
    node: /lib64/libm.so.6: version `GLIBC_2.27' not found (required by node)
    node: /lib64/libc.so.6: version `GLIBC_2.28' not found (required by node)
    

    Using custom environment Docker image also throws Internal Error

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande