HEX
Server: nginx/1.24.0
System: Linux nowruzgan 6.8.0-57-generic #59-Ubuntu SMP PREEMPT_DYNAMIC Sat Mar 15 17:40:59 UTC 2025 x86_64
User: babak (1000)
PHP: 8.3.6
Disabled: NONE
Upload Files
File: //opt/nvm/test/installation_node/install with --latest-npm
#!/bin/sh

set -ex

die () { echo "$@" ; exit 1; }

set +e # todo: fix
\. ../../nvm.sh
set -e

NVM_DEBUG=1 nvm install --latest-npm 4.2.2 \
  | grep 'Attempting to upgrade to the latest working version of npm...' || die 'did not call through to nvm_install_latest_npm'