diff --git a/misc/tools.func b/misc/tools.func index fd9eff384..46d21279f 100644 --- a/misc/tools.func +++ b/misc/tools.func @@ -64,6 +64,12 @@ function setup_nodejs() { exit 1 fi + # Update to latest npm + $STD npm install -g npm@latest || { + msg_error "Failed to update npm to latest version" + exit 1 + } + msg_ok "Setup Node.js ${NODE_VERSION}" fi