these are my notes for installating ionic4 into a brand new linux ubuntu 18.04 machine from a windows 10 hosts.


UPDAGE NODEJS:
https://askubuntu.com/questions/1036278/npm-is-incorrect-version-on-latest-ubuntu-18-04-installation


$ /usr/local/bin/npm -v
6.4.1
$ npm -v
3.5.2
$ command -v npm
/usr/bin/npm
$ type npm
npm is hashed (/usr/bin/npm)

$ hash -d npm

$ npm -v
6.4.1
$ command -v npm
/usr/local/bin/npm

WORKS!! HOW TO UPDATE NODEJS IN UBUNTU:
https://askubuntu.com/questions/426750/how-can-i-update-my-nodejs-to-the-latest-version

[ERROR] ng has unexpectedly closed (exit code 127)
https://stackoverflow.com/questions/51569546/ionic-a-utility-cli-has-unexpectedly-closed