-
mac升級(jí)到catalina后
fir
工具會(huì)報(bào)錯(cuò)-bash: /usr/local/bin/fir: /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/bin/ruby: bad interpreter: No such file or directory
mac升級(jí)后ruby版本為2.6.5, 但是 fir 依賴的還是2.3趁矾, 所以需要升級(jí) fir-cli 了
當(dāng)前最新的應(yīng)該是 fir-cli-1.7.2
在終端執(zhí)行以下命令:
gem install fir-cli
有可能會(huì)遇到權(quán)限的問(wèn)題赢赊,這個(gè)時(shí)候就用sudo以下,或者你自己有更好更安全的方法行您。
最后成功安裝結(jié)果:
Done installing documentation for thor, http-accept, unf_ext, unf, domain_name, http-cookie, mime-types-data, mime-types, rest-client, rubyzip, ruby_android, chunky_png, rqrcode, multi_json, api_tools, fir-cli after 15 seconds