nextcloud / standards

1 stars 0 forks source link

Supported node/npm versions #5

Open skjnldsv opened 2 years ago

skjnldsv commented 2 years ago

Following https://github.com/nextcloud/standards/issues/1

Which version of node and/or npm should I support in my app or library

At Nextcloud, we support security-maintained LTS versions of Node and Npm. You can check the schedule in https://endoflife.date/nodejs

  1. Make sure to have your engines section up-to-date in your package.json as we have scripts to update them once a version become unmaintained.

    You can specify the version of node that your stuff works on You can also use the "engines" field to specify which versions of npm are capable of properly installing your program. For example:

    {
      "engines": {
        "node": "^20.0.0",
        "npm": "^10.0.0"
      }
    }
  2. Please also use appropriates workflows like you can find in our templates repository since they use the engines block to properly setup node and npm
  3. Engines expose the minimum version we support. As a dev, you are free to use newer releases, but testing and releases must be done against those versions. Warnings might be thrown in the console, but they will not impact the process.
  4. We recommend devs to use NVM to quickly switch between versions

Schedule

schedule

Changelog