The relative path was cut with a hardcoded "/", and skipDescendants(), reached at node_modules, abandons the rest of the walk. Between them the entrypoints were staged and nothing they import was. npm is a .cmd shim, which CreateProcess declines, and there is no /usr/bin/env to hand it to.