Skip to content

[BUG] Local path encoding #5505

@michal-laskowski

Description

@michal-laskowski

Is there an existing issue for this?

  • I have searched the existing issues

This issue exists in the latest npm version

  • I am using the latest npm

Current Behavior

I want to import a local package, but there is a # in the path.

In dependencies i got:
"my-awesome-package": "file"./#only-awesome-packages/package1"

The path is not recognized correctly and everything before the # character is truncated .
If I replace # with% 23 everything works fine

Expected Behavior

I should be able to use the great sign #

Steps To Reproduce

No response

Environment

  • npm:8.19.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    Bugthing that needs fixingNeeds Triageneeds review for next stepsRelease 8.xwork is associated with a specific npm 8 release

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions