postinstall-node-version-check

v0.2.4
Logs a message on postinstall if the Node.js version being used is not supported.
node version deprecation warning postinstall

postinstall-node-version-check

Logs a message on postinstall if the Node.js version being used is not supported.

Usage

The installation instructions mention npm, but you can use other package managers.

  • Install the package:
    $ npm install postinstall-node-version-check
    
  • Add it to your postinstall script:
    {
      //...
      "scripts": {
        //...
        "postinstall": "postinstall-node-version-check"
      }
    }
    

Output

The following message will be logged on postinstall on unsupported Node.js version vX.Y.Z:

(node:<LINE_NUMEBR>) NodeDeprecationWarning: The Node.js version vX.Y.Z is no longer supported.
npm i postinstall-node-version-check

Metadata

  • MIT
  • >=6.0.0
  • Kamat, Trivikram
  • released 7/16/2021

Downloads

Maintainers