定制app开发mac 安装sass过程总结

项目场景:

定制app开发今天心血来潮给mac定制app开发上准备安装一下,定制app开发以前都是项目中有所以也就没有安装,今天安装了一下各种报错,简单的记录一下

问题描述:

一、运行 gem install sass
然后就是各种错误,懵逼了我不知道怎么继续下去了,只能在网上搜索可行的方案,结果找到了说是ruby的版本太低了,好吧 !那就升级!

1、更新 brew

 brew update
  • 1

然后又是各种报错,太难了我!

Error:   homebrew-cask is a shallow clone.To `brew update`, first run:  git -C /usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask fetch --unshallowThis command may take a few minutes to run due to the large size of the repository.This restriction has been made on GitHub's request because updating shallowclones is an extremely expensive operation due to the tree layout and traffic ofHomebrew/homebrew-core and Homebrew/homebrew-cask. We don't do this for youautomatically to avoid repeatedly performing an expensive unshallow operation inCI systems (which should instead be fixed to not use shallow clones). Sorry forthe inconvenience!....
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12

2、升级brew
整合了一下搜索的方案,说是只要删除homebrew-core后更新即可,安排上吧

cd /usr/local/Homebrew/Library/Taps/homebrewrm -rf homebrew-corebrew upgrade
  • 1
  • 2
  • 3
  • 4

这一顿操作完之后又又出现问题了:

Error:   homebrew-cask is a shallow clone.To `brew update`, first run:  git -C /usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask fetch --unshallowThis command may take a few minutes to run due to the large size of the repository.This restriction has been made on GitHub's request because updating shallowclones is an extremely expensive operation due to the tree layout and traffic ofHomebrew/homebrew-core and Homebrew/homebrew-cask. We don't do this for youautomatically to avoid repeatedly performing an expensive unshallow operation inCI systems (which should instead be fixed to not use shallow clones). Sorry forthe inconvenience!==> Tapping homebrew/coreCloning into '/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core'...fatal: unable to access 'https://github.com/Homebrew/homebrew-core/': LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection to github.com:443 
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15

我去文件夹看了看,homebrew-core这个文件夹不见了,哦哦,刚才被我删除了,没辙了我就直接克隆一个好了

mkdir homebrewgit clone https://github.com/Homebrew/homebrew-core /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core --depth=1
  • 1
  • 2


3、查看brew是否成功
另起窗口,输入brew

OK,自此brew升级成功!


二、升级ruby
1、通过brew升级ruby

brew install ruby
  • 1

然后跟新版本

echo 'export PATH="/usr/local/opt/ruby/bin:$PATH"' >> ~/.bash_profilesource ~/.bash_profileruby -v
  • 1
  • 2
  • 3


2、安装sass

gem install sass
  • 1

额,又又又出问题了

sass-v
  • 1

zsh: command not found: sass
查看一下组件安装了没有

gem list
  • 1


安装了那就说明没有关联到:

export PATH="/usr/local/lib/ruby/gems/3.0.0/bin:$PATH"
  • 1
sass-v
  • 1


OK,至此安装完成,搞定,实在是太难了!

网站建设定制开发 软件系统开发定制 定制软件开发 软件开发定制 定制app开发 app开发定制 app开发定制公司 电商商城定制开发 定制小程序开发 定制开发小程序 客户管理系统开发定制 定制网站 定制开发 crm开发定制 开发公司 小程序开发定制 定制软件 收款定制开发 企业网站定制开发 定制化开发 android系统定制开发 定制小程序开发费用 定制设计 专注app软件定制开发 软件开发定制定制 知名网站建设定制 软件定制开发供应商 应用系统定制开发 软件系统定制开发 企业管理系统定制开发 系统定制开发