Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 13c804c

Browse files
committed
Change default NodeJS version to "lts"
1 parent dd8c877 commit 13c804c

File tree

3 files changed

+10
-7
lines changed

3 files changed

+10
-7
lines changed

README.md

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -157,11 +157,14 @@ Default configuration as below:
157157

158158
### NodeJS configuration
159159

160-
| Variable Name | Type | Description | Default |
161-
|----------------|--------|---------------------------------|---------|
162-
| install | bool | Install NodeJS or not | `true` |
163-
| version | string | Setup NodeJS version to install | `"18"` |
164-
| install_yarn | bool | Install `yarn` or not | `true` |
160+
| Variable Name | Type | Description | Default |
161+
|----------------|--------|---------------------------------|------------|
162+
| install | bool | Install NodeJS or not | `true` |
163+
| version | string | Setup NodeJS version to install | `"lts"` |
164+
| nvm_version | string | `nvm` version number | `"0.39.1"` |
165+
166+
GearBox use [`nvm`](https://github.com/nvm-sh/nvm) to install NodeJS.
167+
Valid `nvm` version numbers can be found at [https://github.com/nvm-sh/nvm/releases](https://github.com/nvm-sh/nvm/releases).
165168

166169
### Golang configuration
167170

ansible/playbooks/ubuntu/12-nodejs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
- name: Install nvm
22
hosts: localhost
33
vars:
4-
version: '{{ nodejs.version|default("18") }}'
4+
version: '{{ nodejs.version|default("lts") }}'
55
nvm_version: '{{ nodejs.nvm_version|default("0.39.1") }}'
66
tasks:
77
- name: 'Install nvm v{{ nvm_version }}'

configuration/configuration.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ func New() *Configuration {
107107
},
108108
NodeJS: confNodeJS{
109109
Install: true,
110-
Version: "18",
110+
Version: "lts",
111111
NvmVersion: "0.39.1",
112112
},
113113
GoLang: confGoLang{

0 commit comments

Comments
 (0)