Skip to content

Commit

Permalink
Don't set package version to latest for global installs for nodejs.
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandermeindl committed Nov 10, 2023
1 parent f2eeb27 commit 413f93f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions roles/nodejs/tasks/setup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,9 @@
- name: Ensure npm global packages are installed.
community.general.npm:
name: "{{ item.name | default(item) }}"
version: "{{ item.version | default('latest') }}"
version: "{{ item.version | default(omit) }}"
global: true
state: latest
state: "{{ item.state | default('present') }}"
environment:
NPM_CONFIG_PREFIX: "{{ npm_config_prefix }}"
NODE_PATH: "{{ npm_config_prefix }}/lib/node_modules"
Expand Down

0 comments on commit 413f93f

Please sign in to comment.