function testVersion(cached, range) {
            if (!semver.satisfies(cached.cfg.version, range)) {
                return callback(new Error(
                    'Conflicting version requirements for ' +
                    cached.cfg.name + ':\n' +
                    'Version ' + cached.cfg.version + ' loaded by "' +
                    cached.parent + '" but "' + pkg.cfg.name +
                    '" requires ' + range
                ));
            }
        }
Read dependencies of a cached package loaded by the readMeta function.

@param {Object} cache - an object to add packages metadata and path info to
@param {Object} pkg - the cached package object
@param {Array} paths - lookup paths for finding packages
@param {String} source - the original location for resolving relative paths
@param {Function} callback - the callback function