diff options
author | Rebecca Turner <me@re-becca.org> | 2017-05-26 00:37:12 +0300 |
---|---|---|
committer | Rebecca Turner <me@re-becca.org> | 2017-05-26 04:55:33 +0300 |
commit | da7bbb25fe347cb81395c6e1dc6b1f5b42f0a90f (patch) | |
tree | ccc837363a77b63a18aa4d4dd35223fe6cc94333 /lib | |
parent | 1ea953a983665c2a3684be120ec407e529d11c4a (diff) |
install: allow parseable output for nodes w/o paths
This can happen when, for example, removing a module from your project that
isn't actually in your node_modules at the moment.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/install.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/install.js b/lib/install.js index 46082ad46..5d111b32c 100644 --- a/lib/install.js +++ b/lib/install.js @@ -840,7 +840,7 @@ Installer.prototype.printInstalledForParseable = function (diffs, cb) { mutation + '\t' + moduleName(child) + '\t' + (child.package ? child.package.version : '') + '\t' + - path.relative(self.where, child.path) + '\t' + + (child.path ? path.relative(self.where, child.path) : '') + '\t' + (previousVersion || '') + '\t' + (previousPath || '')) }) |