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

Question : Is the installed package really 795.3 MB ? #1535

Closed
avnercompit opened this issue Aug 29, 2016 · 2 comments
Closed

Question : Is the installed package really 795.3 MB ? #1535

avnercompit opened this issue Aug 29, 2016 · 2 comments
Assignees
Labels
core type: question Request for information or clarification. Not an issue.

Comments

@avnercompit
Copy link

I installed 0.38.3.
The folder in the node_modules directory is 795.3 MB.

For micro-services this is really uncomfortable it increases a lot of install and transfer times and requires bigger storage spaces for my machines.

And the only thing I'm using is BigQuery.

Did I get something wrong ? Is there a way to install just BigQuery ?

@stephenplusplus
Copy link
Contributor

This just came up on Twitter: https://twitter.com/mluggy/status/770221258533380096

Old versions of npm don't run dedupe for you. This is a command which finds compatible ranges of dependencies between your dependencies, and removes them from disk. Since npm version 3, dedupe is run before downloading any dependencies, so no extra disk space or download time is wasted.

For example, on npm 3, npm install google-cloud results in a ~45MB download. With npm 2, you get the larger download size (~700MB from my testing). If you run npm dedupe, you should end up around the npm 3 size.

So the two options for best results are;

  1. Upgrade npm to version 3.x
  2. If that's not possible, run npm dedupe after installing

@stephenplusplus stephenplusplus added type: question Request for information or clarification. Not an issue. core labels Aug 29, 2016
@stephenplusplus
Copy link
Contributor

I've added a note in our Troubleshooting docs explaining this: #1536

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core type: question Request for information or clarification. Not an issue.
Projects
None yet
Development

No branches or pull requests

3 participants