Skip to content

Lerna bootstrap not working #221

Closed
Closed

Description

@ksambhi

Hi,
When attempting to use lerna in my project (bedel), I found lerna bootstrap did not link my packages.
The name field in my package.json is set to bedel, with the installed dependency I am trying to link called bedel-logger.

Specs:

Thanks in advanced!

Activity

  1. jamiebuilds commented on Jun 15, 2016

    @jamiebuilds
    Contributor

    Why don't you have a packages directory?

    Lerna does not link across separate repos, if thats what you are trying to do then you are misusing it.

  2. ksambhi commented on Jun 15, 2016

    @ksambhi
    Author

    I have a packages directory, but not commited as it is empty.
    Do I have to put the package in my repo for development, instead of a separate repo?
    Here what I thought the process was:

    • Put package in a repo
    • Publish to npm
    • Add to lerna
  3. jamiebuilds commented on Jun 15, 2016

    @jamiebuilds
    Contributor

    Lerna is a tool for managing single repositories with many packages.

  4. ksambhi commented on Jun 15, 2016

    @ksambhi
    Author

    Got error -4058

  5. jamiebuilds commented on Jun 15, 2016

    @jamiebuilds
    Contributor

    Idk what that means

  6. cchamberlain commented on Jun 15, 2016

    @cchamberlain

    @thejameskyle

    I'm getting similiar results converting to a lerna monorepo on Windows 10. The commands were working from OSX last night but I get the error -4058 on Windows.

    image

    image

    lerna-debug.log in top level

    lerna(info)    Lerna v2.0.0-beta.20
    lerna(debug)   Attempting running BootstrapCommand.initialize
    lerna(debug)   Successfully ran BootstrapCommand.initialize
    lerna(debug)   Attempting running BootstrapCommand.execute
    lerna(info)    Linking all dependencies
    lerna(error)   Errored while running BootstrapCommand.execute
        -4058
    

    es-proxy package.json deps
    image

    koaproxy-core package.json header
    image

    versions
    image

  7. hzoo commented on Jun 15, 2016

    @hzoo
    Contributor

    Was it because of sync-exec? What happens on beta.19?

  8. cchamberlain commented on Jun 15, 2016

    @cchamberlain

    Yes.

    image

    image

    Thank you!

  9. hzoo commented on Jun 15, 2016

    @hzoo
    Contributor

    https://github.com/lerna/lerna/pull/220/files - need to look at this again I guess? It's checking if child.execSync is defined, otherwise not so I don't see why that would change any behavior. Maybe a publishing issue. If you aren't on 0.10 it should act exactly the same.

  10. cchamberlain commented on Jun 15, 2016

    @cchamberlain

    Oh wow 0.10, how legacy.

  11. cchamberlain commented on Jun 15, 2016

    @cchamberlain

    Maybe a const hasExecSync = !/v0\.1?[01]\.[0-9]+/.test(process.version) test instead?

  12. ifiokjr commented on Jul 1, 2016

    @ifiokjr

    I'm still seeing this issue within a new lerna based repo on Windows 7.

    lerna bootstrap fails for me.

    {
      "lerna": "2.0.0-beta.23",
      "version": "0.0.0"
    }
    
  13. jamiebuilds commented on Jul 1, 2016

    @jamiebuilds
    Contributor

    This issue is a mess, for help with the -4058 error go to #226. If you have a problem with something else, search for an issue and if it doesn't exist create a new one.

  14. locked and limited conversation to collaborators on Jul 1, 2016
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