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
已提问 9 个月前557 查看次数
8 回答
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
已回答 8 个月前
0

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

profile picture
已回答 9 个月前
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
已回答 9 个月前
0

I coud'tn figure out a way @Lockhead

profile picture
已回答 9 个月前
0

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

profile picture
已回答 4 个月前
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
专家
已回答 4 个月前
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
已回答 4 个月前
-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
审核人员
AWS-Jay
已回答 9 个月前
  • 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

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则