Skip to content

Commit

Permalink
Issue techjoomla#19 fix: NPM - Global folder issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Lakhan Mandloi committed Sep 27, 2017
1 parent e2baa57 commit 1a50e52
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions environment-setup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,14 @@
- devtools

- name: 'Create node global installation folder'
raw: mkdir ~/.npm-global && npm config set prefix '~/.npm-global' && touch ~/.profile
raw: mkdir /home/{{server_runs_as}}/.npm-global && npm config set prefix /home/{{server_runs_as}}/.npm-global && touch /home/{{server_runs_as}}/.profile
when: ansible_distribution_version == '16.04'
tags:
- node
- devtools

- name: 'update profile file'
raw: export PATH=~/.npm-global/bin:$PATH > ~/.profile
raw: export PATH=/home/{{server_runs_as}}/.npm-global/bin:$PATH > /home/{{server_runs_as}}/.profile
when: ansible_distribution_version == '16.04'
tags:
- node
Expand Down

0 comments on commit 1a50e52

Please sign in to comment.