Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Show the install tree for global installs
  • Loading branch information
isaacs committed Jul 12, 2012
1 parent 735e114 commit ea087b3
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions lib/install.js
Expand Up @@ -388,7 +388,7 @@ function treeify (installed) {
return l
}, {})

//log.warn("install", whatWhere, "whatWhere")
// log.warn("install", whatWhere, "whatWhere")
return Object.keys(whatWhere).reduce(function (l, r) {
var ww = whatWhere[r]
//log.warn("r, ww", [r, ww])
Expand Down Expand Up @@ -668,7 +668,11 @@ function localLink (target, where, context, cb) {
function resultList (target, where, parentId) {
var nm = path.resolve(where, "node_modules")
, targetFolder = path.resolve(nm, target.name)
, prettyWhere = path.relative(process.cwd(), where)
, prettyWhere = where

if (!npm.config.get("global")) {
path.relative(process.cwd(), where)
}

if (prettyWhere === ".") prettyWhere = null

Expand Down

0 comments on commit ea087b3

Please sign in to comment.