File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed
all/templates/users/aki/zsh Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ function update() {
46
46
47
47
if command_exists npm; then
48
48
echo "Updating npm..."
49
- npm update --location= global
49
+ npm update --global
50
50
echo "npm updated!"
51
51
fi
52
52
Original file line number Diff line number Diff line change 95
95
pip_executable : " {{ which_pip.stdout }}"
96
96
when : " 'python' in asdf_plugins_names"
97
97
98
- - name : Discover "aki" user npm binaries directory
98
+ - name : Discover "aki" user npm prefix
99
99
become_user : aki
100
100
ansible.builtin.command :
101
101
cmd : >
102
- zsh -c "source ~/.asdf/asdf.sh && direnv exec ~ npm bin --location= global"
103
- register : npm_bin_result
102
+ zsh -c "source ~/.asdf/asdf.sh && direnv exec ~ npm prefix --global"
103
+ register : npm_prefix_result
104
104
changed_when : false
105
105
when : " 'nodejs' in asdf_plugins_names"
106
106
107
107
- name : Set npm binaries directory
108
108
ansible.builtin.set_fact :
109
- npm_binaries_dir : " {{ npm_bin_result .stdout }}"
109
+ npm_binaries_dir : " {{ npm_prefix_result .stdout }}/bin "
110
110
when : " 'nodejs' in asdf_plugins_names"
Original file line number Diff line number Diff line change 8
8
ansible.builtin.command :
9
9
cmd : >
10
10
zsh -c "source ~/.asdf/asdf.sh &&
11
- direnv exec ~ npm install --location= global {{ item }}"
11
+ direnv exec ~ npm install --global {{ item }}"
12
12
creates : " {{ npm_binaries_dir }}/{{ item }}"
13
13
loop : " {{ package_names }}"
You can’t perform that action at this time.
0 commit comments