jacky@nyc ~ %cat scripts/applescript/update-nodejs-via-nvm/script.json

"title": "Update Node.js via NVM",

"category": "AppleScript",

"language": "AppleScript",

"description": "Installs current LTS Node.js versions (per the official release schedule), sets the latest as default, migrates global packages, and removes non-LTS versions."

jacky@nyc ~/update-nodejs-via-nvm %ls -l latest/

Files

Download individual files from the latest release.

Download all filesDownload ZIP

jacky@nyc ~/update-nodejs-via-nvm %git log --tags --date=short

Version history

Every published version stays available, with release notes and its original files.

  1. tag v1.5.0 (HEAD -> latest)

    Date:

    Commands run in the background, and only missing or outdated global packages are reinstalled.

  2. tag v1.4.1

    Date:

    Errors show the command's own message instead of a generic exit status.

  3. tag v1.4.0

    Date:

    Renamed to "Update Node.js via NVM". Installs the current LTS versions, sets the newest as default, moves global packages over, and removes non-LTS versions.

  4. tag v1.3.0

    Date:

    Command-line mode with a dry run, and a test script for automated checks.

  5. tag v1.2.0

    Date:

    Rewritten to reinstall global packages, restore the previous default version, and avoid the npm ".DS_Store" error.

  6. tag v1.1.0

    Date:

    Installs the newest release of each Node.js major version already installed.

  7. tag v1.0.0

    Date:

    First version. Updates npm and nvm using your shell profile.