node
On MacOS brew install node works well enough.
On Linux apt install node installs a version which is hopelessly obsolete.
Therefore the plan is to:
- install node version manager
nwithsudo npm install -g n - use
nto installnode. To installnodeinto/usr/local:sudo n stableTo install node into a user-specific location:
mkdir ~/n export N_PREFIX=$HOME/n export PATH="$N_PREFIX/bin:$PATH" # Make these permanent by adding to your ~/.zshrc n stable
Verify node installation:
node --version