How to update node to a given version – User friendly Tech help

Scenario:- Update node to the given version ?

n

Solution:- 

n

Using nvm:-Node Version Manager

n

Install nvm 

n

curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.8/install.sh | bash

n

    n

  1. Reopen the terminal
  2. n

  3. Check nvm is installed by typing nvm > enter > it will show nvm commands
  4. n

  5. nvm install Node_Version_i_Want
  6. n

n

$ nvm install 8.9.4

n

Note:- After installing the latest node incase your build fails with error like

n

Node Sass could not find a binding for your current environment: OS X 64-bit with Node.js 8.x

n

Solution is simply run the sass build npm rebuild node-sass

Was this article helpful?
YesNo

Similar Posts