MINI MINI MANI MO

Path : /opt/nvm/versions/node/v7.10.1/lib/node_modules/npm/lib/install/action/
File Upload :
Current File : //opt/nvm/versions/node/v7.10.1/lib/node_modules/npm/lib/install/action/update-linked.js

'use strict'
var path = require('path')

function getTop (pkg) {
  if (pkg.target && pkg.target.parent) return getTop(pkg.target.parent)
  if (pkg.parent) return getTop(pkg.parent)
  return pkg.path
}

module.exports = function (staging, pkg, log, next) {
  if (pkg.package.version !== pkg.oldPkg.package.version) {
    log.warn('update-linked', path.relative(getTop(pkg), pkg.path), 'needs updating to', pkg.package.version,
      'from', pkg.oldPkg.package.version, "but we can't, as it's a symlink")
  }
  next()
}

OHA YOOOO