Jekyll项目建立遇到的问题
执行gem install jekyll bundler
报错
ERROR: While executing gem ... (Gem::FilePermissionError)
You don't have write permissions for the /Library/Ruby/Gems/2.6.0 directory.
报错:
The internal error was:
(NoMethodError) undefined method `[]' for nil:NilClass
ERROR: While executing gem ... (NoMethodError)
undefined method `[]' for nil:NilClass
通过下面两个命令就可以解决
只需导出 GEM_HOME:
export GEM_HOME="$HOME/.gem"
然后尝试:
gem install cocoapods
共有 0 条评论