diff --git a/misc/tools.func b/misc/tools.func index 078df4bd0..03f9102c8 100644 --- a/misc/tools.func +++ b/misc/tools.func @@ -64,6 +64,11 @@ 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