Permalink
Browse files

Show the install tree for global installs

  • Loading branch information...
1 parent 735e114 commit ea087b307276142da4fba7292931e3bfacfd2bf4 @isaacs isaacs committed Jul 12, 2012
Showing with 6 additions and 2 deletions.
  1. +6 −2 lib/install.js
View
@@ -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])
@@ -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

0 comments on commit ea087b3

Please sign in to comment.