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
diff options
context:
space:
mode:
authorNathan Fritz <fritzy@github.com>2022-03-15 21:10:04 +0300
committerGitHub <noreply@github.com>2022-03-15 21:10:04 +0300
commit0e7511d144bdb6624e4c0fdfb31b4b42ed2954c9 (patch)
tree829ee812b310c5b4e88cb465eb04b11b0310f21f /workspaces/arborist/lib
parentf66290ecbbc1f766597013ed0d8e624455372de4 (diff)
fix(arborist): _findMissingEdges missing dependency due to inconsistent path separators (#4261)
Co-authored-by: Salvador Jacobi <salvadorj@unity3d.com>
Diffstat (limited to 'workspaces/arborist/lib')
-rw-r--r--workspaces/arborist/lib/arborist/load-actual.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/workspaces/arborist/lib/arborist/load-actual.js b/workspaces/arborist/lib/arborist/load-actual.js
index c06ed8026..b04fc88f6 100644
--- a/workspaces/arborist/lib/arborist/load-actual.js
+++ b/workspaces/arborist/lib/arborist/load-actual.js
@@ -435,7 +435,7 @@ module.exports = cls => class ActualLoader extends cls {
if (d.dummy) {
// it's a placeholder, so likely would not have loaded this dep,
// unless another dep in the tree also needs it.
- const depPath = `${p}/node_modules/${name}`
+ const depPath = normalize(`${p}/node_modules/${name}`)
const cached = this[_cache].get(depPath)
if (!cached || cached.dummy) {
depPromises.push(this[_loadFSNode]({