Description
Is there an existing issue for this?
- I have searched the existing issues
See #1991 (comment)
Current Behavior
npm install
in a fresh project with an explicit git+ssh
dependency on a gitlab repo (minimal example) takes 60+ seconds, seemingly it waits for some random network timeout before proceeding the installation.
Expected Behavior
npm install
should take 2-3 seconds to install dependencies of the project in minimal example like it did in npm v6
.
Steps To Reproduce
See https://gitlab.com/klesun/npm-seven-issue
I reproduced this hang in Ubuntu 20.04
with npm 7.15.1
as well as MacBook Pro 2019
with npm 7.15.1
git clone https://gitlab.com/klesun/npm-seven-issue.git
cd npm-seven-issue
npm install
package.json
{
"name": "npm-seven-issue",
"version": "0.0.1",
"devDependencies": {
"npm-seven-issue-dep": "git+ssh://git@gitlab.com/klesun/npm-seven-issue-dep#5f1b313978986974d4364585e6bd3689276f1697"
}
}
If you are using npm
version prior to v7.x
, for example v6.14.13
, npm install
should be done within 2-3 seconds.
If you are using npm
version v7.0.0
or later, for example 7.15.1
, npm install
will hang for 60+ seconds with following text:
[....................] \ idealTree.pql-box: still idealTree buildDeps
Note, you need to remove package-lock.json
and node_modules
prior to retrying the npm install
, otherwise issue won't reproduce.
Environment
- OS: Ubuntu 20.04
- Node: v16.2.0
- npm: 7.15.1
as well as
- OS: MacBook Pro 2019
- Node: v15.11.0
- npm: 7.15.1