diff --git a/lib/package.js b/lib/package.js index fa9f7a115..74356642a 100644 --- a/lib/package.js +++ b/lib/package.js @@ -670,9 +670,12 @@ exports.download = function(pkg, options, depsCallback) { Object.keys(depRanges.peerDeps).forEach(function(dep) { rangeMap.peerDependencies[dep] = depRanges.peerDeps[dep].exactName; }); - postloadResolve(depRanges); fs.writeFileSync(cacheDir + '.deps.json', JSON.stringify(rangeMap, null, 2)); fs.writeFileSync(path.resolve(cacheDir, '.jspm-hash'), fullHash + newLine + cfgHash); + + // postloadResolve creates a promise so we need to return null for Bluebird warnings + postloadResolve(depRanges); + return null; }); })