update node with nvm
// to see which versions of node you have run:
nvm ls
// example:
// nvm ls
// v8.10.0
// -> v8.16.0
// v10.21.0
// system
// default -> 8.16.0 (-> v8.16.0)
// in this case use
nvm use 10.21.0
// you can also uninstall and reinstall if you are having issues
// by following the steps in:
// https://stackabuse.com/how-to-uninstall-node-js-from-mac-osx/#!/bin/sh
set -e
cd ~/.nvm
git fetch --tags
TAG=$(git describe --tags `git rev-list --tags --max-count=1`)
echo "Checking out tag $TAG..."
git checkout "$TAG"
source ~/.nvm/nvm.sh
Also in JavaScript:
- scrollto angular
- javascript find object by property in array
- how to comment in javascript
- how to wait till jquery post request has been made
- array intersection javascript es6
- electron didn't know require
- react lifecycle hooks
- parseint function javascript
- js read mysql database
- jquery get current row value
- count value a to b character javascript
- javascript login system
- how to find element in array angularjs
- jquery remove multiple classes
- trim text and add ... js
- javascript add object to array
- int to octal javascript
- avoid compressing imagepicker react native
- javascript add div
- js queryselector names
- get value in tag with id JS
- foreach await js
- splice()
- js capture all errors