Skip to content

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

Open
@omiras

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 Windows user 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions