Linux CentOS安裝Azure Cli工具

衡子發表於2016-02-05

vim /etc/yum.repos.d/epel.repo

 

[epel]

name=epel

baseurl=http://mirrors.sohu.com/fedora-epel/6/$basearch

enabled=1

gpgcheck=0

 

用yum安裝nodejs和npm軟體:

yum install nodejs -y

yum install npm -y

 

編輯 ~/.npmrc 加入下面內容:

 

registry = http://registry.cnpmjs.org

或者:

registry = http://registry.npm.taobao.org

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

 

然後安裝azure-cli

npm install azure-cli -g

相關文章