Skip to content

Commit 73c14c0

Browse files
authored
chore: bump node version to v20 (#20)
1 parent e37e2a5 commit 73c14c0

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

README.md

+8-8
Original file line numberDiff line numberDiff line change
@@ -85,15 +85,15 @@ As Mac OS has recently removed the bundled copy of Python 2.7, please see [this
8585
**Installing and Upgrading Node and NPM versions**\
8686
There is a handy command in your `.bash_profile` and `.zsh_profile` that will automatically install your chosen version of Node and NPM, re-install any global npm packages (like angular cli), and set the newly installed version as default.
8787

88-
We use Node v18 at Vendasta. To upgrade to the latest version of Node 18, re-install global npm packages, and set it as default, run the following command:
88+
We use Node v20 at Vendasta. To upgrade to the latest version of Node 20, re-install global npm packages, and set it as default, run the following command:
8989
```sh
90-
node-upgrade 18
90+
node-upgrade 20
9191
```
9292

9393
If you wish to install a version of node without reinstalling all global packages or setting it to be default, you can use NVM directly ([Official docs][nvm docs]):
9494
```sh
9595
# Install a specific version of Node
96-
nvm install 14 # or 10.10.0, 8.9.1, etc
96+
nvm install 18 # or 10.10.0, 8.9.1, etc
9797
```
9898

9999
<br>
@@ -108,7 +108,7 @@ nvm use node # "node" is an alias for the latest version
108108
nvm use --lts
109109

110110
# To switch to a specific verison of Node
111-
nvm use 11 # or 10.10.0, 8.9.1, etc
111+
nvm use 18 # or 10.10.0, 8.9.1, etc
112112
```
113113

114114
[nvm docs]: https://github.com/nvm-sh/nvm/blob/master/README.md#usage
@@ -202,7 +202,7 @@ export NODE_OPTIONS=--max_old_space_size=12000
202202

203203
# Update Node to selected version and reinstall previous packages
204204
node-upgrade() {
205-
new_version=${1:?"Please specify a version to upgrade to. Example: node-upgrade 18"}
205+
new_version=${1:?"Please specify a version to upgrade to. Example: node-upgrade 20"}
206206
nvm install "$new_version" --reinstall-packages-from=current
207207
nvm alias default "$new_version"
208208
# nvm uninstall "$prev_ver"
@@ -268,7 +268,7 @@ export NODE_OPTIONS=--max_old_space_size=12000
268268

269269
# Update Node to selected version and reinstall previous packages
270270
node-upgrade() {
271-
readonly new_version=${1:?"Please specify a version to upgrade to. Example: node-upgrade 18"}
271+
readonly new_version=${1:?"Please specify a version to upgrade to. Example: node-upgrade 20"}
272272
nvm install "$new_version" --reinstall-packages-from=current
273273
nvm alias default "$new_version"
274274
# nvm uninstall "$prev_ver"
@@ -359,7 +359,7 @@ getLastestNVM() {
359359
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/$(getLastestNVM)/install.sh | bash
360360
export NVM_DIR="$HOME/.nvm"
361361
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
362-
nvm install 18
362+
nvm install 20
363363
npm install --location=global @angular/cli
364364
npm install --location=global nx
365365
npm install --location=global husky
@@ -705,7 +705,7 @@ This script helps new developers at Vendasta setup their laptops quicker, lettin
705705
I have tried to make this script simple and useful. You will want to customize the installation and configuration to match the tools and services you use at your company.
706706

707707
- At Vendasta, we are using Go, Angular, and Google Cloud. You most likely do not use all of these, so remove, change, and tweak to meet your needs.
708-
- We lock our Node version at 18 (using NVM) for best compatibility with Angular and NX. You will likely want to change this.
708+
- We lock our Node version at 20 (using NVM) for best compatibility with Angular and NX. You will likely want to change this.
709709
- To customize the [welcome logo](https://github.com/vendasta/setup-new-computer-script/blob/47b7c97f21b293e143a0566cafecec2cfc69c528/setup-new-computer.sh#L74-L90) and add a bit of style, I used the handy [Text to ASCII Art Generator](https://patorjk.com/software/taag/#p=testall&f=Isometric1&t=Vendasta)
710710
- When you update the script, remember to update the readme "What's Installed" section too
711711
- Be sure to update both the `.bash_profile` and `.zprofile`

setup-new-computer.sh

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22

3-
VERSION="v3.3.0"
3+
VERSION="v3.4.0"
44
#===============================================================================
55
# title setup-new-computer.sh
66
# author Joel Kesler
@@ -161,7 +161,7 @@ export NODE_OPTIONS=--max_old_space_size=12000
161161
162162
# Update Node to selected version and reinstall previous packages
163163
node-upgrade() {
164-
new_version=\${1:?"Please specify a version to upgrade to. Example: node-upgrade 18"}
164+
new_version=\${1:?"Please specify a version to upgrade to. Example: node-upgrade 20"}
165165
nvm install "\$new_version" --reinstall-packages-from=current
166166
nvm alias default "\$new_version"
167167
# nvm uninstall "\$prev_ver"
@@ -232,7 +232,7 @@ export NODE_OPTIONS=--max_old_space_size=12000
232232
233233
# Update Node to selected version and reinstall previous packages
234234
node-upgrade() {
235-
readonly new_version=\${1:?"Please specify a version to upgrade to. Example: node-upgrade 18"}
235+
readonly new_version=\${1:?"Please specify a version to upgrade to. Example: node-upgrade 20"}
236236
nvm install "\$new_version" --reinstall-packages-from=current
237237
nvm alias default "\$new_version"
238238
# nvm uninstall "\$prev_ver"
@@ -480,7 +480,7 @@ printHeading "Installing Node and Angular CLI through NVM"
480480
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
481481
printDivider
482482
echo "Installing Node..."
483-
nvm install 18
483+
nvm install 20
484484
printStep "Angular CLI" "npm install --location=global @angular/cli"
485485
printStep "NX" "npm install --location=global nx"
486486
printStep "Husky" "npm install --location=global husky"

0 commit comments

Comments
 (0)