MAC自动化环境相关配置

Mac 环境变量文件

~/.bash_profile
source ~/.bash_profile

别名设置

Vi ~/.bashrc
alias python2=’/System/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7’
alias python3=’/Library/Frameworks/Python.framework/Versions/3.6’
alias python=python3
Alias pip=pip3

source ~/.bash_profile

brew更换镜像源

cd “ ( b r e w r e p o ) " g i t r e m o t e s e t u r l o r i g i n g i t : / / m i r r o r s . u s t c . e d u . c n / b r e w . g i t c d " (brew --repo)" git remote set-url origin git://mirrors.ustc.edu.cn/brew.git cd " (brew --repo)/Library/Taps/homebrew/homebrew-core”
git remote set-url origin git://mirrors.ustc.edu.cn/homebrew-core.git
brew更换bottles
echo ‘export HOMEBREW_BOTTLE_DOMAIN=https://mirrors.ustc.edu.cn/homebrew-bottles’ >> ~/.bash_profile

npm配置镜像

npm config set registry https://registry.npm.taobao.org
npm config get registry //验证
npm install package -g 全局安装包

问题

  • 问题1:

    5987 error { Error: EPERM: operation not permitted, unlink ‘C:\Users\SDSC-XAD\AppData\Roaming\npm\node_modules.staging\address-81a14501’
    5987 error errno: -4048,
    5987 error code: ‘EPERM’,
    5987 error syscall: ‘unlink’,

安装node-sass包可解决
set SASS_BINARY_SITE=https://npm.taobao.org/mirrors/node-sass/
npm install node-sass

brew缓存目录

/Users/sds/Library/Caches/Homebrew/downloads

Mac Safari driver路径

/System/Librry/CoreServices/SafariSupport.bundle/Contents/MacOS/safaridriver

扫描二维码关注公众号,回复: 6743571 查看本文章

猜你喜欢

转载自blog.csdn.net/j448998943/article/details/94716708