We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c7fffd8 commit c92f9d5Copy full SHA for c92f9d5
ct/nginxproxymanager.sh
@@ -27,6 +27,19 @@ function update_script() {
27
msg_error "No ${APP} Installation Found!"
28
exit
29
fi
30
+
31
+ if command -v node &> /dev/null; then
32
+ CURRENT_NODE_VERSION=$(node --version | cut -d'v' -f2 | cut -d'.' -f1)
33
+ if [[ "$CURRENT_NODE_VERSION" != "22" ]]; then
34
+ systemctl stop openresty
35
+ apt-get purge -y nodejs npm
36
+ apt-get autoremove -y
37
+ rm -rf /usr/local/bin/node /usr/local/bin/npm
38
+ rm -rf /usr/local/lib/node_modules
39
+ rm -rf ~/.npm
40
+ rm -rf /root/.npm
41
+ fi
42
43
44
NODE_VERSION="22" NODE_MODULE="yarn" setup_nodejs
45
export NODE_OPTIONS="--openssl-legacy-provider"
0 commit comments