Skip to content

Commit

Permalink
refactor: replace --location=global with --global
Browse files Browse the repository at this point in the history
npm first [deprecated](npm/cli#4879)
but has since [undeprecated](npm/cli#4982) it.
  • Loading branch information
akikanellis committed Jan 4, 2023
1 parent e4eb16b commit 76e6585
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ansible/roles/all/templates/users/aki/zsh/functions.zsh.j2
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ function update() {

if command_exists npm; then
echo "Updating npm..."
npm update --location=global
npm update --global
echo "npm updated!"
fi

Expand Down
2 changes: 1 addition & 1 deletion ansible/roles/common/tasks/npm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@
ansible.builtin.command:
cmd: >
zsh -c "source ~/.asdf/asdf.sh &&
direnv exec ~ npm install --location=global {{ item }}"
direnv exec ~ npm install --global {{ item }}"
creates: "{{ npm_binaries_dir }}/{{ item }}"
loop: "{{ package_names }}"

0 comments on commit 76e6585

Please sign in to comment.