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.

npm install takes about 5 minutes to run

See original GitHub issue

I have a RN project with bunch of native library but this library exclusively takes about ~3-5 minutes when running npm install the first time. It looks like the native compilation is the reason of this (RxSwift complication, etc) Is there a way libraries can be precompiled? like some sort of node-gyp prebuild equivalent? 🤔

Thanks

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:5
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

5reactions
Cierpliwycommented, Mar 12, 2018

There is one thing which can be improved:

  • By updating binary releases used by Carthage we end up only compiling BLE framework. All dependencies are cached.

Additionaly we can:

  • Try to use static Swift framework to move compiling step to building process. That’s how ObjC is working in most libraries.

  • Wait for Swift ABI to stabilize and use prebuild frameworks. Unfortunately it will take a while.

1reaction
liuqiang1357commented, Apr 25, 2018

Same problem to me,npm install is too slow

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why is "npm install" really slow? - node.js - Stack Overflow
I installed modules here in less than 1 min with your package. json with npm v3.
Read more >
npm install takes too many hours · Issue #11028 - GitHub
I run "npm install" in the same project ( on my computer at work Ubuntu 16.4 ) and it only takes about 5...
Read more >
[URGENT] npm install taking too long to run in npm build
The first application, lets refer to it as “EE”, runs in under 5 mins, while the other is taking over 10 mins to...
Read more >
Why does npm take so long while installing packages?
it takes ~5 minutes to download and install. ... Modules sometimes have many dependencies (other modules that are needed to run correctly).
Read more >
[Solved] Npm install hung or takes too long time
While working on Node you may be downloading various npm packages. Sometimes the download process just hung and does not move forward.
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