Skip to content

OSX "working directory" mismatch #7545

@evantahler

Description

@evantahler
  • node v5.9.1:
  • OSX:
  • El Capitan:

On OSX, if you are a temporary directory, as generated via require('os').tmpDir() (like /var/folders/ry/c05q3yxs1q98yps6h2_g3gn00000gn/T) It's possoble that the various ways of determining your path do not match:

  • __dirname => /private/var/folders/ry/c05q3yxs1q98yps6h2_g3gn00000gn/T
  • process.env.PWD => /var/folders/ry/c05q3yxs1q98yps6h2_g3gn00000gn/T
  • process.cwd() => /private/var/folders/ry/c05q3yxs1q98yps6h2_g3gn00000gn/T

Metadata

Metadata

Assignees

No one assigned

    Labels

    macosIssues and PRs related to the macOS platform / OSX.processIssues and PRs related to the process subsystem.questionIssues that look for answers.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions