Skip to content

Latest commit

 

History

History
41 lines (31 loc) · 1.11 KB

node-version.md

File metadata and controls

41 lines (31 loc) · 1.11 KB

Node Version

The Node version for this project is automatically managed by:

  • a .node-version file
  • the NVM and AVM packages
Setup
  1. install NVN (Node Version Manager)

    curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.34.0/install.sh | bash
  2. install AVN (Automatic Version Switching for Node.js)

    npm install -g avn avn-nvm avn-n
    avn setup
Usage

Once you've gone through the Setup above, AVN will automatically switch to version of node specified in your project's .node-version file, whenever you cd into the project's root or open a new terminal window in the project's root.

NPM Version

Additionally NPM version is specified in each package.json throughout the project eg.

  "engines": {
    "npm": "^6.14.8"
  },

Make sure the NPM version specified in engines (as above) matches the Node version in .node-version.

Use the following as a reference when checking this: