安装完homebrew后执行下面命令
1、opencv4nodejs can not found
# 安装
brew install cmake
# 查看版本
cmake -version
# 运行命令
npm -g install opencv4nodejs --ignore-scripts
2、ffmpeg cannot be found
# 安装
brew install ffmpeg
# 检查
ffmpeg
3、mjpeg-consumer cannot be found
npm i -g mjpeg-consumer
4、set-simulator-location is not installed
brew install lyft/formulae/set-simulator-location
5、idb and idb_companion are not installed
brew tap facebook/fb
brew install idb-companion
pip3 install fb-idb
6、applesimutils cannot be found
brew tap wix/brew
brew install applesimutils
7、ios-deploy cannot be found
npm install -g ios-deploy 或 sudo cnpm install -g ios-deploy --unsafe-perm=true
以下的错误我这没有,但是每个人的错误都不一样,因此我也写出来。
8、Carthage was NOT found
brew install carthage
9、bundletool.jar cannot be found
1.在https://github.com/google/bundletool/releases 下载bundletool.jar
2.改名成这个bundletool
3.在android sdk目录下,创建bundle-tools目录,把jar包放入
4.在终端进入到当前目录
5.给jar包加权限:chmod +x bundletool.jar
6.修改环境变量:
open -e .bash_profile
# 最后加入
export PATH=${PATH}:${ANDROID_HOME}/bundle-tools
source .bash_profile
10.gst-launch-1.0 and/or gst-inspect-1.0 cannot be found
brew install gstreamer