You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Here I use npm 8 to init my git repo, it infer the git repo automatically, like this:
But with npm 9 and above, it doesn't work.
With npm 9, like this:
With npm 10, like this:
Expected Behavior
Is this behavior expected? If so, why removing this feature? I think this feature is really convenient.
Steps To Reproduce
Init a git repo that link to a remote git repo.
Run npm init.
Environment
npm: 8.19.4, 9.9.3, 10.9.1
Node.js: 20.17.0
OS Name: macOS 14.6.1
System Model Name: Macbook Air
npm config:
; copy and paste output from `npm config ls` here; node bin location = /usr/local/bin/node; node version = v20.17.0; npm local prefix = /Users/devin/Code/is-string-devin; npm version = 10.9.1; cwd = /Users/devin/Code/is-string-devin; HOME = /Users/devin; Run `npm config ls -l` to show all defaults.
The text was updated successfully, but these errors were encountered:
devinjohw
changed the title
[BUG] <title> npm init doesn't infer the git repo automatically sn
[BUG] npm init doesn't infer the git repo automatically sn
Nov 26, 2024
Is there an existing issue for this?
This issue exists in the latest npm version
Current Behavior
Here I use npm 8 to init my git repo, it infer the git repo automatically, like this:
But with npm 9 and above, it doesn't work.
With npm 9, like this:
With npm 10, like this:
Expected Behavior
Is this behavior expected? If so, why removing this feature? I think this feature is really convenient.
Steps To Reproduce
npm init
.Environment
The text was updated successfully, but these errors were encountered: