Skip to content

Commit

Permalink
Using npm programatically... :P
Browse files Browse the repository at this point in the history
  • Loading branch information
jung-kim committed May 22, 2016
1 parent 294fa6b commit dd20b43
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/sysinfo.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ var cache = require('./utils/cache');
var getmac = require('getmac');
var md5 = require('blueimp-md5');
var semver = require('semver');
var npmconf = require('npmconf');
var npm = require('npm');
var RegClient = require('npm-registry-client');

var sysinfo = exports;
Expand Down Expand Up @@ -34,7 +34,7 @@ sysinfo.getUngitPackageJsonVersion = function(callback) {
function noop() {}

sysinfo.getUngitLatestVersion = function(callback) {
npmconf.load({}, function(err, config) {
npm.load({}, function(err, config) {
if (err) return callback(err);
config.log = { error: noop, warn: noop, info: noop,
verbose: noop, silly: noop, http: noop,
Expand Down

1 comment on commit dd20b43

@avindra
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks. Seeing the deprecated warnings on npm install was getting really old 😃

Please sign in to comment.