Skip to content

Windows. Incorrect Module.id with mounted network disk #7294

Closed
@tsofist

Description

@tsofist
  • Version: v6.2.1, v6.2.0
  • Platform: Windows 10, x64

Steps:

  • Mount network drive V:\ = \\CASTOR\
  • Install any npm-package (e.g. ajv) to \\CASTOR\scope\
  • Launch locally installed node with cwd: V:\scope\ (or launch node from network disk: V:\scope\node.exe)
  • Write:require("ajv"); console.log(Object.keys(require.cache)[0])

Output
node v6.1.0 (and previous): V:\scope\node_modules\ajv\lib\ajv.js
node v6.2.0 (and v6.2.1): \\CASTOR\scope\node_modules\ajv\lib\ajv.js

process.cwd() in all versions: V:\\scope

Metadata

Metadata

Assignees

No one assigned

    Labels

    moduleIssues and PRs related to the module subsystem.windowsIssues and PRs related to the Windows platform.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions