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 2246e67 commit efd4f3e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions environment-setup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,21 +50,21 @@
- devtools

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

- name: 'update profile file'
raw: export PATH=/home/{{server_runs_as}}/.npm-global/bin:$PATH > /home/{{server_runs_as}}/.profile
raw: sudo touch /home/{{server_runs_as}}/.profile && sudo export PATH=/home/{{server_runs_as}}/.npm-global/bin:$PATH > /home/{{server_runs_as}}/.profile && sudo chmod -R 777 /home/{{server_runs_as}}/.profile
when: ansible_distribution_version == '16.04'
tags:
- node
- devtools

- name: 'update system variables'
raw: source /home/{{server_runs_as}}/.profile
raw: sudo source /home/{{server_runs_as}}/.profile
when: ansible_distribution_version == '16.04'
tags:
- node
Expand Down

0 comments on commit efd4f3e

Please sign in to comment.