1 개요[ | ]
- CentOS7 yarn 1.x 설치
Console
Copy
root@centos7:~# node -v
v6.17.1
root@centos7:~# npm -v
3.10.10
root@centos7:~# yarn -v
-bash: yarn: command not found
Console
Copy
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
Console
Copy
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
Console
Copy
...
Installed:
yarn.noarch 0:1.22.4-1
Complete!
Console
Copy
root@centos7:~# yarn -v
1.22.4
2 같이 보기[ | ]
편집자 Jmnote Jmnote bot
로그인하시면 댓글을 쓸 수 있습니다.
- 분류 댓글:
- CentOS 7 (2)
- Yum install (2)
CentOS7 MariaDB 설치 ― 전귀현CentOS7 MariaDB 설치 ― Jmnote