我正在使用离子框架来创建应用程序,并尝试在cmd中添加相机插件。
cordova plugin add https://github.com/wildabeast/BarcodeScanner.git
这给出了错误
Fetching plugin "https://github.com/wildabeast/BarcodeScanner.git" via
git clone Error: "git" command line tool is not installed: make sure
it is accessible on your PATH. at Object.clone
(C:\Users\Joseph\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\src\gitclone.js:35:25)
尝试将环境路径设置为C:\Program Files\git\bin
并不能解决问题,重新安装git也无法解决问题。
我正在使用64位Windows 10,任何帮助都会非常感激。