forked from superlumic/superlumic-config
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
26 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
--- | ||
|
||
- name: install node | ||
homebrew: name={{item}} state=latest | ||
with_items: | ||
- node | ||
|
||
- name: create nvm directory | ||
file: | ||
path: "{{ home_dir }}/.nvm" | ||
state: directory | ||
|
||
- name: copy nvm-exec to NVM's working directory | ||
shell: cp $(brew --prefix nvm)/nvm-exec ~/.nvm/ creates=~/.nvm/nvm-exec | ||
|
||
- name: Install nvm in the recommended way | ||
command: curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.38.0/install.sh | bash | ||
|
||
- name: install other node versions via nvm | ||
shell: ". {{ home_dir }}/.nvm/nvm.sh; nvm install {{item}}" | ||
with_items: "{{node_versions}}" | ||
|
||
- name: st the default node version | ||
shell: ". {{ home_dir }}/.nvm/nvm.sh; nvm alias default {{default_node_version}}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters