Skip to content

Commit 4c3152b

Browse files
authored
Fixed: Node command not found (#81)
2 parents fd231a3 + 8d219e7 commit 4c3152b

1 file changed

Lines changed: 13 additions & 2 deletions

File tree

.update.sh

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -273,6 +273,18 @@ update_yarn() {
273273
yarn upgrade --latest
274274
}
275275

276+
# Function: update_node_pkgs
277+
# Description: Updates Node.js packages if the 'node' command is installed.
278+
update_node_pkgs() {
279+
println "Updating Node Packages"
280+
if ! check_command node; then
281+
return
282+
fi
283+
284+
update_npm
285+
update_yarn
286+
}
287+
276288
# Function: update_cargo
277289
# Description: Updates cargo packages if the 'cargo' command is installed.
278290
update_cargo() {
@@ -436,7 +448,6 @@ if check_internet; then
436448
update_brew
437449
update_vscode_ext
438450
update_gem
439-
update_npm
440-
update_yarn
451+
update_node_pkgs
441452
update_cargo
442453
fi

0 commit comments

Comments
 (0)