nodejs-cmd¶
install¶
https://github.com/nvm-sh/nvm/releases
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.2/install.sh | bash
nvm install 20
node -v
npm -v
- 16 works on amazon linux 2 (has glibc 2.26)
- 18/20 does not work on AL2 (no glibc 2.27/2.28)
- 20 works on ubuntu 22
on al2023¶
https://linux.how2shout.com/how-to-install-nodejs-20-x-on-amazon-linux-2023/
on ubuntu¶
https://joshtronic.com/2023/04/23/how-to-install-nodejs-20-on-ubuntu-2004-lts/
H1¶
https://docs.aws.amazon.com/cdk/v2/guide/work-with-cdk-typescript.html
To update your project’s NPM dependencies to the latest permitted version according to the rules you specified in package.json
: