Silence npm when using npm.commands.search
This commit is contained in:
parent
9109bd206e
commit
5d7a8adcb7
|
@ -54,7 +54,7 @@ exports.getAvailablePlugins = function(maxCacheAge, cb) {
|
|||
if(exports.availablePlugins && maxCacheAge && Math.round(+new Date/1000)-cacheTimestamp <= maxCacheAge) {
|
||||
return cb && cb(null, exports.availablePlugins)
|
||||
}
|
||||
npm.commands.search(['ep_'], function(er, results) {
|
||||
npm.commands.search(['ep_'], /*silent?*/true, function(er, results) {
|
||||
if(er) return cb && cb(er);
|
||||
exports.availablePlugins = results;
|
||||
cacheTimestamp = Math.round(+new Date/1000);
|
||||
|
|
Loading…
Reference in New Issue