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

nodejs does not install node 18.x #1762

Open
matason opened this issue Jun 13, 2024 · 1 comment · Fixed by #1763
Open

nodejs does not install node 18.x #1762

matason opened this issue Jun 13, 2024 · 1 comment · Fixed by #1763
Assignees
Labels
1.x 2.x bug Something isn't working good first issue Good for newcomers

Comments

@matason
Copy link
Member

matason commented Jun 13, 2024

The nodejs role should install node 18.x and yarn stable by default however, at the time of writing, you end up with node v16.20.2 and yarn 1.22.19. These are the versions you get with the base image.

As per the examples, I tried:

- name: Ensure NodeJS and Yarn are installed.
  ansible.builtin.apt:
    pkg:
    - nodejs=v18.20.3
    - yarn=1.22.22
    state: present

and variants with and without the prefix v to no avail.

I found the only solution was to remove the packages first. When I do that, I get the following versions:

  • node v18.17.1
  • yarn 1.22.22
@matason matason self-assigned this Jun 13, 2024
@matason matason mentioned this issue Jun 13, 2024
@gregharvey gregharvey added bug Something isn't working good first issue Good for newcomers 1.x 2.x labels Jul 4, 2024
@gregharvey
Copy link
Member

Merged the 1.x version, we need this for 2.x too. 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1.x 2.x bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants