Skip to content

Latest commit

 

History

History
28 lines (18 loc) · 1.06 KB

node-version.md

File metadata and controls

28 lines (18 loc) · 1.06 KB

System Design Dashboard Vue App :: Node Version

The Node version for this project is automatically managed by:

  • a .node-version file
  • the NVM and AVN packages

Setup

  1. install NVM (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

Windows users

AVN is not compatible with windows. A possible work-around is to install NVM for windows and switch manually. However there is some advice on this thread to make AVN compatible if you use CMDER as an console emulator.

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.