Skip to content

Commit d04dca7

Browse files
authored
feat: upgrade to node 18 (#16)
1 parent d6134d1 commit d04dca7

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,9 @@ 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 v16 at Vendasta. To upgrade to the latest version of Node 16, re-install global npm packages, and set it as default, run the following command:
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:
8989
```sh
90-
node-upgrade 16
90+
node-upgrade 18
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]):
@@ -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 16"}
205+
new_version=${1:?"Please specify a version to upgrade to. Example: node-upgrade 18"}
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 16"}
271+
readonly new_version=${1:?"Please specify a version to upgrade to. Example: node-upgrade 18"}
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 16
362+
nvm install 18
363363
npm install --location=global @angular/cli
364364
npm install --location=global nx
365365
npm install --location=global husky
@@ -714,7 +714,7 @@ This script helps new developers at Vendasta setup their laptops quicker, lettin
714714
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.
715715

716716
- 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.
717-
- We lock our Node version at 16 (using NVM) for best compatibility with Angular and NX. You will likely want to change this.
717+
- We lock our Node version at 18 (using NVM) for best compatibility with Angular and NX. You will likely want to change this.
718718
- 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)
719719
- When you update the script, remember to update the readme "What's Installed" section too
720720
- Be sure to update both the `.bash_profile` and `.zprofile`

setup-new-computer.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22

3-
VERSION="v3.2.0"
3+
VERSION="v3.3.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 16"}
164+
new_version=\${1:?"Please specify a version to upgrade to. Example: node-upgrade 18"}
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 16"}
235+
readonly new_version=\${1:?"Please specify a version to upgrade to. Example: node-upgrade 18"}
236236
nvm install "\$new_version" --reinstall-packages-from=current
237237
nvm alias default "\$new_version"
238238
# nvm uninstall "\$prev_ver"
@@ -487,7 +487,7 @@ printHeading "Installing Node and Angular CLI through NVM"
487487
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
488488
printDivider
489489
echo "Installing Node..."
490-
nvm install 16
490+
nvm install 18
491491
printStep "Angular CLI" "npm install --location=global @angular/cli"
492492
printStep "NX" "npm install --location=global nx"
493493
printStep "Husky" "npm install --location=global husky"

0 commit comments

Comments
 (0)