LoginSignup
1
1

More than 5 years have passed since last update.

【メモ】Amazon LinuxでServerless Frameworkを利用できるようにする

Posted at

背景

嵌まったり、バグ踏んだりしたのでメモ

動作要件

前提

  • Amazon EC2を利用
  • ec2-userでログインして作業

手順

1. Node.jsのインストール

この辺を参考にします。

コマンド
curl --silent --location https://rpm.nodesource.com/setup_6.x | sudo bash -
コマンド
sudo yum -y install nodejs
sudo yum -y install gcc-c++ make
コマンド
node -v
結果
v6.11.0

2. Serverless Framework

以下のコマンドを実行。

コマンド
sudo npm install -g serverless

2017/6/10に実行した際、以下のバグを踏んだ

以下の通り、オプションを付けることで回避できた。

コマンド
sudo npm install -g serverless --unsafe-perm
コマンド
serverless -v
結果
1.15.1

以上

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1