使用cordova plugin add命令安裝外掛的時候提示: “git” command line tool is not installed: make sure it is accessible on your PATH. 因為專案需要該外掛,所以只好來解決這個問題。
工具/原料
cordova
git
第一步: 檢視問題
1. 使用cordova plugin add命令安裝外掛:
2. 提示錯誤
"git" command line tool is not installed: make sure it is accessible on your PATH.
第二步: 安裝git
1. git-scm官網
2. 下載Git
3. 安裝git
第三步: 重新開啟命令視窗再次通過cordova plugin add安裝外掛
需要重新開啟命令視窗。