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

Project setup issues due to a different global lerna version #1207

Open
fvoska opened this issue Nov 29, 2023 · 0 comments
Open

Project setup issues due to a different global lerna version #1207

fvoska opened this issue Nov 29, 2023 · 0 comments
Assignees
Labels

Comments

@fvoska
Copy link
Contributor

fvoska commented Nov 29, 2023

Used libraries

all

Library version(s)

all

Environments with the issue

Node 18

Current behavior

Currently, the latest lerna version is 8.0.0. Version installed in the repository is 6.6.2 - 2 versions behind. CONTRIBUTING.md instructions say you should install lerna globally. However, that will install 8.0.0 globally and running commands like lerna run build does not work:

image

Seems like there was some breaking change in lerna v7 or v8.

Using the locally installed version works:

image

Expected behavior

We should not rely on contributors installing lerna globally because we can not ensure which version they will install. Even if we update the readme to tell contributors to install some specific version globally, that might be in conflict with other project for which they might need to use a different version (and you can only install one version globally).

All tooling should be invoked via npm scripts and use locally installed versions of packages. Readme and contribution documents should reflect this.

Reproduction steps

Clone the project anew and follow CONTRIBUTING.md guidelines for project setup

@fvoska fvoska added the bug label Nov 29, 2023
@fvoska fvoska changed the title Project setup issues Project setup issues due to a different global lerna version Nov 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants