0

我使用 macOS Catalina 版本 10.15.1 在我的 MacBookAir 上执行 gem install tr​​avis 然后出现错误

ERROR:  While executing gem ... (Gem::FilePermissionError)
    You don't have write permissions for the /Library/Ruby/Gems/2.6.0 directory.

然后我执行 sudo gem install tr​​avis

ERROR:  While executing gem ... (Gem::FilePermissionError)
    You don't have write permissions for the /usr/bin directory.

如何安装特拉维斯?

4

1 回答 1

0

我找到了解决方案 gem install --user-install tr​​avis 并将 /Users/steinkorsveien/.gem/ruby/2.6.0/bin 添加到 PATH

执行 travis travis version 时出错

 /usr/local/bin/travis:
 /usr/local/Cellar/travis/1.8.10/libexec/bin/travis:
 /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/bin/ruby:
 bad interpreter: No such file or directory /usr/local/bin/travis: line
 2: /usr/local/Cellar/travis/1.8.10/libexec/bin/travis: Undefined
 error: 0

我该如何解决这个问题?

于 2019-11-16T23:43:21.693 回答