mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2025-09-11 01:44:38 +00:00
[core]: tools.func -> autoupdate npm to newest version on install (#5397)
This commit is contained in:
parent
7b90b0624e
commit
c09606db69
1 changed files with 6 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue