Skip to content

Conversation

@milaninfy
Copy link
Contributor

npm init calls libnpmexec with path and runPath, for most cases it would not matter but when we have a package installed locally on root and we want to run npm init that-package -w workspace it should identify that-package is installed and use that to init new workspace package. here the path is where node_modules are and runPath is cwd to run the command.
Fixes: #7700

@milaninfy milaninfy marked this pull request as ready for review August 13, 2024 18:05
@milaninfy milaninfy requested a review from a team as a code owner August 13, 2024 18:05
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.

[BUG] npm init does not use locally installed version of given package.

2 participants