ablog

不器用で落着きのない技術者のメモ

Amazon Linux に node.js をインストールする

# curl --silent --location https://rpm.nodesource.com/setup_6.x | bash -
# yum install -y nodejs
$ npm install aws-sdk

参考


2020/6/11 追記:

# cat /etc/system-release
Amazon Linux release 2 (Karoo)
# uname -r
4.14.177-139.254.amzn2.x86_64

# curl -sL https://rpm.nodesource.com/setup_12.x | bash -
# yum install -y nodejs
# node -v
v12.18.0

2021/5/9 追記:

$ curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.34.0/install.sh | bash
$ . ~/.nvm/nvm.sh
$ nvm install node
$ node -e "console.log('Running Node.js ' + process.version)"