Description
Is there an existing issue for this?
- I have searched the existing issues
This issue exists in the latest npm version
- I am using the latest npm
Current Behavior
When there is dependency being installed from git repo(git+ssh), npm latest (v11.4.1) is not downloading the dependency.
The lock file also does not show the dependency being downloaded.
Please note that the dependency does get downloaded and installed properly in v11.2.0
Possible problematic commit: https://github.com/npm/cli/pull/8312/files
Expected Behavior
Packages from git+ssh should get installed properly
Steps To Reproduce
- Create a problematic package.json file with packages from git
- npm i --verbose
- npm throws error
npm warn reify invalid or damaged lockfile detected
npm warn reify please re-try this operation once it completes
npm warn reify so that the damage can be corrected, or perform
npm warn reify a fresh install with no lockfile if the problem persists.
npm verbose reify unrecognized node in tree /home/jenkins/workspace/xxx/yyyy/zzzz/node_modules/my-private-package
Environment
- npm: 11.4.1
- Node.js: 20.19.2
- OS Name: Ubuntu:20:04
- System Model Name: EC2 instance
- npm config: