Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cli hangs when running npm install #1991

Closed
aks- opened this issue Oct 19, 2020 · 6 comments
Closed

cli hangs when running npm install #1991

aks- opened this issue Oct 19, 2020 · 6 comments
Labels
Bug thing that needs fixing Needs Triage needs review for next steps Release 7.x work is associated with a specific npm 7 release

Comments

@aks-
Copy link

aks- commented Oct 19, 2020

Current Behavior:

I am trying to migrate a repository from yarn to npm, until now I was seeing output and resolving all the peer deps. But every now and then the cli hangs and does not output anything whatsoever. I have to kill the process to get out of it.

Expected Behavior:

Either an error output or deps should be installed.

Steps To Reproduce:

Because I am working on private repo, I can not provide the package.json

  1. when I run 'npm i'
  2. I see and it hangs here
⸨░░░░░░░░░░░░░░░░░░⸩ ⠧ idealTree:xxx-frontend: sill idealTree buildDeps
⸨        ░░░░░░░░░░⸩ ⠋ idealTree:warning: timing idealTree:node_modules/react-router/node_modules/warning Completed in 0ms

Environment:

  • OS: OS X v10.14.4
  • Node: v10.18.1
  • npm: 7.0.0
@aks- aks- added Bug thing that needs fixing Needs Triage needs review for next steps Release 7.x work is associated with a specific npm 7 release labels Oct 19, 2020
@aks- aks- changed the title [BUG] <title> cli hangs when running npm install Oct 19, 2020
@ljharb
Copy link
Contributor

ljharb commented Oct 19, 2020

Can you try with npm v7.0.2?

@aks-
Copy link
Author

aks- commented Oct 19, 2020

Can you try with npm v7.0.2?

That seems to work! :s thank you

@ljharb ljharb closed this as completed Oct 19, 2020
@klesun
Copy link

klesun commented Jun 3, 2021

I have same problem with 7.13.0 and 7.15.1 on ubuntu with such package.json in a clean working copy without package.lock or node_modules:

{
  "name": "npm-seven-issue",
  "version": "0.0.1",
  "devDependencies": {
    "npm-seven-issue-dep": "git+ssh://[email protected]/klesun/npm-seven-issue-dep#5f1b313978986974d4364585e6bd3689276f1697"
  }
}

It just freezes at:

[....................] \ idealTree.pql-box: still idealTree buildDeps

In npm 6.14.13 npm install of this project worked without problems

Upd.: oh, it does eventually end on 7.13.0, after 1m13,013s. Some network timeout perhaps?

klesun@kunkka:~/gits/pql-box$ time npm i
added 1 package, and audited 2 packages in 1m
found 0 vulnerabilities
real	1m13,013s
user	0m1,555s
sys	0m0,253s

On 6.14.13 same project clean install ends in 0m2,474s:

klesun@kunkka:~/gits/pql-box$ time npm i
npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN [email protected] No repository field.
npm WARN [email protected] No license field.
added 1 package and audited 1 package in 2.004s
found 0 vulnerabilities
real	0m2,474s
user	0m0,694s
sys	0m0,100s

@ljharb, npm install became 30 times slower, it's a regression introduced in npm v7, is it?

@klesun
Copy link

klesun commented Jun 3, 2021

Filed a minimal reproduction repo: https://gitlab.com/klesun/npm-seven-issue/-/blob/main/README.md

@ljharb
Copy link
Contributor

ljharb commented Jun 3, 2021

@klesun can you file a new issue for this?

@klesun
Copy link

klesun commented Jun 3, 2021

@ljharb yes!
#3359

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug thing that needs fixing Needs Triage needs review for next steps Release 7.x work is associated with a specific npm 7 release
Projects
None yet
Development

No branches or pull requests

3 participants