0
votes

Trying to add plugin to my cordova project to be able to access file system:

cordova plugin add https://git-wip-us.apache.org/repos/asf/cordova-plugin-file.git

but I receive an error:

Fetching plugin failed: "git" command line tool is not installed: make sure it is accessible on your PATH.

git was installed as: npm install -g git

how to solve this problem?

1

1 Answers

1
votes

What you installed by npm -g install git is not the git command but a utility library to use git in nodejs scripts.

You have to download and install the git program.