diff options
Diffstat (limited to 'deps/npm/lib/unbuild.js')
-rw-r--r-- | deps/npm/lib/unbuild.js | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/deps/npm/lib/unbuild.js b/deps/npm/lib/unbuild.js index f8b3d6e0f9..771eddf7db 100644 --- a/deps/npm/lib/unbuild.js +++ b/deps/npm/lib/unbuild.js @@ -65,7 +65,12 @@ function rmBins (pkg, folder, parent, top, cb) { } function rmMans (pkg, folder, parent, top, cb) { - if (!pkg.man || !top || process.platform === "win32") return cb() + if (!pkg.man + || !top + || process.platform === "win32" + || !npm.config.get("global")) { + return cb() + } var manRoot = path.resolve(npm.config.get("prefix"), "share", "man") asyncMap(pkg.man, function (man, cb) { var parseMan = man.match(/(.*)\.([0-9]+)(\.gz)?$/) |