Skip to content

Commit c2b5747

Browse files
authored
readd npm latest update
1 parent d31fd08 commit c2b5747

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

misc/tools.func

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,11 @@ function setup_nodejs() {
6464
exit 1
6565
fi
6666

67+
# Update to latest npm
68+
$STD npm install -g npm@latest || {
69+
msg_error "Failed to update npm to latest version"
70+
exit 1
71+
}
6772
msg_ok "Setup Node.js ${NODE_VERSION}"
6873
fi
6974

0 commit comments

Comments
 (0)