Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/commands/ls.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/commands/ls.js b/lib/commands/ls.js
index d3932072b..073ca0c69 100644
--- a/lib/commands/ls.js
+++ b/lib/commands/ls.js
@@ -92,7 +92,7 @@ class LS extends ArboristWorkspaceCmd {
}
if (this.npm.flatOptions.includeWorkspaceRoot
- && !edge.to.isWorkspace) {
+ && edge.to && !edge.to.isWorkspace) {
return true
}