CentOS7 yarn 1.22.x 설치

1 개요[ | ]

CentOS7 yarn 1.x 설치
root@centos7:~# node -v
v6.17.1
root@centos7:~# npm -v
3.10.10
root@centos7:~# yarn -v
-bash: yarn: command not found
root@centos7:~# curl --silent --location https://dl.yarnpkg.com/rpm/yarn.repo | sudo tee /etc/yum.repos.d/yarn.repo
[yarn]
name=Yarn Repository
baseurl=https://dl.yarnpkg.com/rpm/
enabled=1
gpgcheck=1
gpgkey=https://dl.yarnpkg.com/rpm/pubkey.gpg
root@centos7:~# yum install yarn

...
Dependencies Resolved

==========================================================================================================================
 Package                    Arch                         Version                         Repository                  Size
==========================================================================================================================
Installing:
 yarn                       noarch                       1.22.4-1                        yarn                       1.2 M

Transaction Summary
==========================================================================================================================
Install  1 Package

Total download size: 1.2 M
Installed size: 5.1 M
Is this ok [y/d/N]: y
...
Installed:
  yarn.noarch 0:1.22.4-1

Complete!
root@centos7:~# yarn -v
1.22.4

2 같이 보기[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}