Install the LeanCloud command line tool CLI on MacOS High Sierra 10.13.6
Brief introduction
According to my analysis (for reference), LeanCloud and mbmod are two very popular cloud API providers in China, and their main markets are aimed at mobile development. I will not repeat the details here. Interested friends can refer to the relevant information on the official website. This article describes the considerations for installing the LeanCloud command line tool CLI on MacOS High Sierra 10.13.6.
Command line tools are tools used to manage and deploy cloud engine projects. It can not only deploy, publish and roll back cloud engine code, manage multiple applications for the same cloud engine project, but also view cloud engine logs and upload files to the LeanCloud cloud in batches. It can be said that the lean-cli command line tool is the main tool for cloud development and debugging based on LeanCloud.
However, there are several special points to note about installing LeanCloud command-line tools on MacOS High Sierra 10.13.6.
Problems and solutions
If you directly follow the following official command, it is likely to fail:
Brew updatebrew install lean-cli
(1) the command brew update to install the LeanCloud command line tool on the latest MacOS High Sierra 10.13.6 is bound to fail! You can only uninstall brew and reinstall it. The command to uninstall brew is as follows:
/ usr/bin/ruby-e "$(curl-fsSL https://raw.githubusercontent.com/Homebrew/install/master/uninstall)"
(2) reinstall the brew command as follows:
/ usr/bin/ruby-e "$(curl-fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
(3) use brew to install LeanCloud command line tools
Brew install lean-cli
After a successful installation, the command line is displayed as follows:
= = > Downloading https://homebrew.bintray.com/bottles/lean-cli-0.20.0.high_sierra.bottle.tar.gz
# 100.0%
= = > Pouring lean-cli-0.20.0.high_sierra.bottle.tar.gz
= = > Caveats
Bash completion has been installed to:
/ usr/local/etc/bash_completion.d
Zsh completions have been installed to:
/ usr/local/share/zsh/site-functions
= = > Summary
Quote https://leancloud.cn/docs/leanengine_cli.htmlhttps://stackoverflow.com/questions/46459152/cant-chown-usr-local-for-homebrew-in-osx-10-13-high-sierrahttps://www.jianshu.com/p/9474dba212f8https://blog.csdn.net/imliutao2/article/details/78675597