Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Centos7 安装node npm yarn #17

Open
jerrychir opened this issue Feb 28, 2019 · 0 comments
Open

Centos7 安装node npm yarn #17

jerrychir opened this issue Feb 28, 2019 · 0 comments

Comments

@jerrychir
Copy link
Owner

jerrychir commented Feb 28, 2019

Centos7 安装node npm yarn

1.安装yum源

curl --silent --location https://rpm.nodesource.com/setup_8.x | bash -

2.安装node.js

yum install -y nodejs
yum install -y gcc-c++ make

3.使用npm国内阿里源

npm config set registry=https://registry.npm.taobao.org

4.查看node.js版本

node -v

5.安装yarn源

curl -sL https://dl.yarnpkg.com/rpm/yarn.repo | sudo tee /etc/yum.repos.d/yarn.repo

6.安装yarn

yum install -y yarn

7.设置yarn代理

yarn config set registry https://registry.npm.taobao.org
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant