-
Notifications
You must be signed in to change notification settings - Fork 3.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] npm init
does not use locally installed version of given package.
#7700
Closed
2 tasks done
anthonyjpratti opened this issue
Aug 5, 2024
· 1 comment
· Fixed by #7721 or GulajavaMinistudio/cli#124
Closed
2 tasks done
[BUG] npm init
does not use locally installed version of given package.
#7700
anthonyjpratti opened this issue
Aug 5, 2024
· 1 comment
· Fixed by #7721 or GulajavaMinistudio/cli#124
Labels
Comments
anthonyjpratti
added
Bug
thing that needs fixing
Needs Triage
needs review for next steps
labels
Aug 5, 2024
Related to #5596 |
wraithgar
changed the title
[BUG]
[BUG] Aug 9, 2024
npm init
fails to run due to missing artifact in registry, whereas npx will succeed.npm init
does not use locally installed version of given package.
wraithgar
added
Priority 2
secondary priority issue
and removed
Bug
thing that needs fixing
labels
Aug 9, 2024
wraithgar
pushed a commit
that referenced
this issue
Aug 13, 2024
`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
2 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is there an existing issue for this?
This issue exists in the latest npm version
Current Behavior
npm init @repo -w package/foo
will fail due to the following error.The
@repo/create
package is a local package and installed as a dependency on the workspace root.Expected Behavior
npm init @repo -w package/foo
succeeds asmkdir package/foo; cd package/foo; npx @repo/create
does.Steps To Reproduce
@repo/create
in packages/createEnvironment
The text was updated successfully, but these errors were encountered: