Skip to content

node --run fails to locate package.json when the directory path contains special characters (e.g., accents) #58764

Description

@omiras

Version

v22.15.1

Platform

Microsoft Windows NT 10.0.26100.0 x64

Subsystem

No response

What steps will reproduce the bug?

  1. Create a folder with an accented name, e.g. Óscar.
  2. Initialize NPM and add a script in the package.json file with name dev
  3. Execute node --run dev

Image

How often does it reproduce? Is there a required condition?

Each time I attempt to run the command in any shell from a directory whose path contains accented characters

What is the expected behavior? Why is that the expected behavior?

To effectively run the script defined in package.json, as stated in the official documentation

What do you see instead?

Can't find package.json for directory C:\Users\Ëscar Miras\Documents\IronHack2025\lab-express-mongoose-recipes-v2-1

Additional information

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    staleIssues and PRs marked stale due to inactivity and scheduled for automatic closure.

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions