question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Date fns hangs when running npm install

See original GitHub issue

When running npm install / npm ci the installation hangs at ‘extractTree’ date fns step installing version 2.28.0

This started happening about 2 weeks ago. I’m using npm version 6.14.12

It can take up to 10min in some instances.

I noticed that upgrading to the latest version of npm resolves the issue for me. It would be easier to NOT migrate the project to the latest version of npm and remain on the current version.

Can anyone perhaps point me in the right direction as to why this is currently happening? date-fns

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

3reactions
fturmelcommented, May 31, 2022

Found this issue which seems to match with your 2 weeks timeline. It might have something to do with npm/github not supporting unencrypted versions of the git protocol anymore. https://github.com/npm/cli/issues/4896

https://github.blog/2021-09-01-improving-git-protocol-security-github/

1reaction
kiersoncommented, May 30, 2022

This must be something with this particular version of npm + date-fns.

On latest npm (8.9.0) thi issue does not exist.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Hangs on Install · Issue #2479 · date-fns ...
I'm trying to install date-fns for the first time. I tried using the suggested npm install date-fns --save as well as npm install...
Read more >
npm install hangs - node.js
Change the path in environment variables. Set: · Run the command to install your package. · Open file explorer, copy the link: ·...
Read more >
Resolving npm install hangs issue
Resolving npm install hangs issue · Check your network connection · Remove node_modules and package-lock.json · Check the configured registry.
Read more >
date-fns
Start using date-fns in your project by running `npm i date-fns`. ... run: npm install date-fns --save # or with yarn yarn add...
Read more >
Running 'npm install' hangs and hangs... and hangs
Clear the npm cache​​ And that's it. Now run npm install and see if that doesn't just clear up your little hanging problem....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found