Install or Update NPM and @angular/cli on Mac OS

The following setup avoids NPM errors during the @angular/cli installation on Mac OS (Unable to save binary /usr/local/lib/node_modules/@angular/cli/node_modules/node-sass/vendor/darwin-x64-51).