Help us understand the problem. What is going on with this article?

Amazon Linux 2 に Node + yarn をインストールする

More than 1 year has passed since last update.

概要

Amazon Linux 2 に Node + yarn をインストールする時のメモ
yum でさっとは入らない、よく忘れるのでメモ

- name: download nvm installer
  become: no
  get_url: url=https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh dest=/tmp/nvm-installer.sh

- name: execute the nvm-installer.sh
  become: yes
  shell: sh /tmp/nvm-installer.sh

- name: Add nvm initialization to profile
  become: yes
  template: src=nvm.sh.j2 dest=/etc/profile.d/nvm.sh

- name: install node
  become: no
  shell: source /etc/profile && nvm install --lts

- name: use node
  become: no
  shell: source /etc/profile && nvm use --lts

- name: download yarn installer
  become: no
  get_url: url=https://yarnpkg.com/install.sh dest=/tmp/yarn-installer.sh

- name: execute the yarn-installer.sh
  become: no
  shell: sh /tmp/yarn-installer.sh
cohakim
WEB系プログラマ 大阪
http://cohakim.com/
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
No comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
ユーザーは見つかりませんでした