in src/platform.js [56:66]
function findProjectRoot (path) {
const projectRoot = util.cordovaProjectRoot(path);
if (!projectRoot) {
if (!path) {
throw new Error('Current directory does not appear to be in a Cordova project.');
} else {
throw new Error(`Directory "${path}" does not appear to be in a Cordova project.`);
}
}
return projectRoot;
}