0
我正在使用离子框架来创建应用程序,并尝试在cmd中添加相机插件。cordova安装条码插件给出错误git命令行
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,任何帮助将非常感激。
尝试重新安装混帐那样简单,但于事无补,最终卸载节点JS和Git,并重新安装和工作 –
所以其现在的工作适合你? – CodeWizard
是的。谢谢。 –