From 8f8fe930230a4ad85cf1321963d592e1783e1db5 Mon Sep 17 00:00:00 2001 From: paradoxinfinite <10831629+ParadoxInfinite@users.noreply.github.com> Date: Mon, 9 Aug 2021 01:23:45 +0530 Subject: [PATCH] fix: `npm dedupe` path of null error --- node_modules/@npmcli/arborist/lib/place-dep.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/node_modules/@npmcli/arborist/lib/place-dep.js b/node_modules/@npmcli/arborist/lib/place-dep.js index 913b2ba6c2bc7..bea9520173143 100644 --- a/node_modules/@npmcli/arborist/lib/place-dep.js +++ b/node_modules/@npmcli/arborist/lib/place-dep.js @@ -268,7 +268,7 @@ class PlaceDep { integrity: dep.integrity, legacyPeerDeps: this.legacyPeerDeps, error: dep.errors[0], - ...(dep.isLink ? { target: dep.target, realpath: dep.target.path } : {}), + ...(dep.isLink ? { target: dep.target, realpath: dep.realpath } : {}), }) this.oldDep = target.children.get(this.name)