CB-13055: fixed failing tests in cordova-lib
diff --git a/.gitignore b/.gitignore
index 3c3629e..d5f19d8 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,2 @@
 node_modules
+package-lock.json
diff --git a/index.js b/index.js
index 1316fce..c2510c9 100644
--- a/index.js
+++ b/index.js
@@ -84,7 +84,6 @@
         })
         .then(function (depTree) {
             tree1 = depTree;
-            console.log(fetchArgs);
             // install new module
             return superspawn.spawn('npm', fetchArgs, opts);
         })
@@ -99,7 +98,6 @@
             // Need to use trimID in that case.
             // This could happen on a platform update.
             var id = getJsonDiff(tree1, tree2) || trimID(target);
-            console.log('id', id);
             return module.exports.getPath(id, nodeModulesDir, target);
         })
         .fail(function (err) {
@@ -120,8 +118,6 @@
  */
 function getJsonDiff (obj1, obj2) {
     var result = [];
-    console.log(obj1);
-    console.log(obj2);
     // regex to filter out peer dependency warnings from result
     var re = /UNMET PEER DEPENDENCY/;
 
@@ -129,17 +125,13 @@
         // if it isn't a unmet peer dependency, continue
         if (key.search(re) === -1) {
             if (obj2[key] !== obj1[key]) {
-                console.log('key', key);
                 result.push(key);
             }
         }
     }
-    console.log(result);
-    console.log(result.length);
     if (result.length > 1) {
-        console.log('result greater than 1');
-        //something went wrong if we have more than one module installed at a time
-        return false
+        // something went wrong if we have more than one module installed at a time
+        return false;
     }
     // only return the first element
     return result[0];
@@ -157,7 +149,6 @@
  * @return {String} ID       moduleID without version.
  */
 function trimID (target) {
-    console.log('trimID', target);
     var parts;
     // If GITURL, set target to repo name
     var gitInfo = hostedGitInfo.fromUrl(target);
@@ -212,10 +203,7 @@
 
 function getPath (id, dest, target) {
     var destination = path.resolve(path.join(dest, id));
-    console.log('dest', destination);
-    console.log(shell.ls(dest));
     var finalDest = fs.existsSync(destination) ? destination : searchDirForTarget(dest, target);
-    console.log('finalDest', finalDest);
 
     if (!finalDest) {
         throw new CordovaError('Failed to get absolute path to installed module');