SamEureka / balenaCodeServer

balenaCodeServer is a free Visual Studio Code based IDE that runs in your browser, served from your Raspberry Pi!
10 stars 5 forks source link

Add steps to install nvm to clear up the balena CLI node version warning #6

Closed SamEureka closed 2 years ago

SamEureka commented 2 years ago

The balena CLI throws a warning when you use a node version outside it's supported range >= v12.8.0 to < v13.0.0. Node v12.22.10 seems to be the sweet spot. Installing NVM seems to give you the best control over what version of Node you use. Load up something new for work that requires it or a specific LTS version for things like the balena CLI. Simple process with the script and an environment variable. NODE_VERSION I think...

SamEureka commented 2 years ago

TL;DR

  1. Run this curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash
  2. Close the terminal and open a new one
  3. Run this nvm install v12.22.10
  4. Enjoy balena-cli without node version warnings