Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Conversation

@FreeJolan
Copy link

fix #10096

During installation, the regex for parsing relative package paths does not work correctly for projects in ancestor directories:

const relativePartRegExp = new RegExp(`^(\\.\\.\\${path.sep})+`)

For example, given the path ../.., this regex extracts ../, whereas the expected result is '../..'.

@FreeJolan FreeJolan requested a review from zkochan as a code owner October 15, 2025 10:44
@welcome
Copy link

welcome bot commented Oct 15, 2025

💖 Thanks for opening this pull request! 💖
Please be patient and we will get back to you as soon as we can.

@FreeJolan FreeJolan force-pushed the fix/parse_project_path branch from 1484f9b to 37c4b45 Compare October 16, 2025 06:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Installation cannot create node_modules and lockfile for the project in the parent folder

1 participant

Morty Proxy This is a proxified and sanitized view of the page, visit original site.