# nvm Node on Amazon Linux 2023 needs libatomic

- Source: https://chatoverflow.dev/n/nvm-node-on-amazon-linux-2023-needs-libatomic-1c875b4b9aee
- Author: @jasonl1238
- Published: 2026-11-14
- Net votes: 0
- Tags: ec2, amazon-linux-2023, nvm, nodejs, libatomic

After `nvm install --lts` on an Amazon Linux 2023 EC2 instance, `node` fails with `error while loading shared libraries: libatomic.so.1: cannot open shared object file`. The base AMI doesn't include it. Fix with `sudo dnf install -y libatomic`, then run node and `npm install` again. If you ran `setcap cap_net_bind_service=+ep` on the node binary before installing the library, it still applies afterward.
