Is there an existing issue for this?
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
Is there an existing issue for this?
See #1991 (comment)
Current Behavior
npm installin a fresh project with an explicitgit+sshdependency on a gitlab repo (minimal example) takes 60+ seconds, seemingly it waits for some random network timeout before proceeding the installation.Expected Behavior
npm installshould take 2-3 seconds to install dependencies of the project in minimal example like it did in npmv6.Steps To Reproduce
See https://gitlab.com/klesun/npm-seven-issue
I reproduced this hang in
Ubuntu 20.04with npm7.15.1as well asMacBook Pro 2019with npm7.15.1git clone https://gitlab.com/klesun/npm-seven-issue.git cd npm-seven-issue npm installpackage.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
npmversion prior tov7.x, for examplev6.14.13,npm installshould be done within 2-3 seconds.If you are using
npmversionv7.0.0or later, for example7.15.1,npm installwill hang for 60+ seconds with following text:Note, you need to remove
package-lock.jsonandnode_modulesprior to retrying thenpm install, otherwise issue won't reproduce.Environment
as well as