[BUG] unknown git error occurred, when install lots of git dep at same time #6578
Labels
Bug
thing that needs fixing
Needs Triage
needs review for next steps
Release 9.x
work is associated with a specific npm 9 release
Is there an existing issue for this?
This issue exists in the latest npm version
Current Behavior
I have a complex npm v6 large project, and I have resolved many
git+https
protocol dependencies issue (refs #2784) in the process of preparing for migration.This project used more than 160
git+https
protocol dependencies.After careful testing, it was found that:
When
npm install
more than 60git+https
protocol dependencies at the same time.Will likely receive the following errors (from log):
Or following errors (from console):
Or following errors (from log):
232 verbose stack Error: An unknown git error occurred 232 verbose stack at makeError (C:\swdtools\node-v20.3.0-win-x64\node_modules\npm\node_modules\@npmcli\git\lib\make-error.js:28:13) 232 verbose stack at C:\swdtools\node-v20.3.0-win-x64\node_modules\npm\node_modules\@npmcli\git\lib\spawn.js:37:26 233 verbose cwd C:\Users\██████\Desktop\test 234 verbose Windows_NT 10.0.19044 235 verbose node v20.3.0 236 verbose npm v9.6.7 237 error code 128 238 error An unknown git error occurred 239 error command git --no-replace-objects ls-remote https://alm-github.systems.██████/██████/██████.git 240 error remote: Invalid username or password. 240 error fatal: Authentication failed for 'https://alm-github.systems.██████/██████/██████.git/' 241 verbose exit 128 242 timing npm Completed in 159154ms 243 verbose unfinished npm timer reify 1687315663691 244 verbose unfinished npm timer reify:loadTrees 1687315663697 245 verbose code 128 246 error A complete log of this run can be found in: C:\Users\██████\npm\npm-cache\_logs\2023-06-21T02_47_43_096Z-debug-0.log
When
npm install
less than 60git+https
protocol dependencies at the same time.Will install successfully.
The dependencies cause these errors, or the list of dependencies installed when successful, did not find any pattern.
The error occurred git dep, which may be any one.
Expected Behavior
As npm v6, can ben installed successfully.
Steps To Reproduce
npm install
Environment
The text was updated successfully, but these errors were encountered: