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 b011af7 commit c037ee1
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 @@ -50,14 +50,14 @@
- devtools

- name: 'Create node global installation folder'
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
raw: sudo mkdir /home/{{server_runs_as}}/.npm-global/ && npm config set prefix /home/{{server_runs_as}}/.npm-global/ && chmod -R 777 /home/{{server_runs_as}}/.npm-global
when: ansible_distribution_version == '16.04'
tags:
- node
- devtools

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

0 comments on commit c037ee1

Please sign in to comment.