Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(init): use locally installed version of given package (#7721)
`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
- Loading branch information