Skip to content

Bootstrap only missing dependencies #125

Closed

Description

@jamiebuilds

In Lerna 2 we switch from running npm install in every package directory to installing all the packages individually in order to avoid installing local dependencies that don't exist on npm.

$ npm install dep-1@^1.0.0 dep-2@^2.0.0 ...

While this improves the initial bootstrap, this also slows down subsequence bootstraps because when running npm install with the dependencies specified will force npm to re-install things it already has in the local node_modules.

In order to speed this up we can replicate what npm normally does and check if a dependency is already installed before re-installing it making sure that it satisfies the version in package.json.

This means modifying BootstrapCommand#installExternalPackages to perform this check and filter out installed packages.

Activity

  1. hzoo commented on Jun 13, 2016

    @hzoo
    Contributor

    Fixed in #199

  2. lock commented on Dec 28, 2018

    @lock

    This thread has been automatically locked because there has not been any recent activity after it was closed. Please open a new issue for related bugs.

  3. locked as resolved and limited conversation to collaborators on Dec 28, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions