Installing npm and Node.js on a Mac OS laptop

1. Install Mac iOS installer from Node.js

https://nodejs.org/en/download/

2. Downloading and installing Node.js and npm

Checking your version of npm and Node.js§

To see if you already have Node.js and npm installed and check the installed version, run the following commands:

node -v
npm -v

$ node -v
v10.16.0

$ npm -v
6.9.2

4. Run this npm install npm@latest -g

npm is a separate project from Node.js. So even if you’ve just downloaded Node.js (which also includes npm), you’ll probably need to update your npm. 

To update your npm, type this into your terminal:

$ sudo npm install npm@latest -g
/usr/local/bin/npm -> /usr/local/lib/node_modules/npm/bin/npm-cli.js
/usr/local/bin/npx -> /usr/local/lib/node_modules/npm/bin/npx-cli.js
+ npm@6.9.2
updated 1 package in 4.132s

5. Run and check npm version

$ npm - v or 
$ npm - version

Usage: npm <command>

where <command> is one of:
    access, adduser, audit, bin, bugs, c, cache, ci, cit,
    clean-install, clean-install-test, completion, config,
    create, ddp, dedupe, deprecate, dist-tag, docs, doctor,
    edit, explore, get, help, help-search, hook, i, init,
    install, install-ci-test, install-test, it, link, list, ln,
    login, logout, ls, org, outdated, owner, pack, ping, prefix,
    profile, prune, publish, rb, rebuild, repo, restart, root,
    run, run-script, s, se, search, set, shrinkwrap, star,
    stars, start, stop, t, team, test, token, tst, un,
    uninstall, unpublish, unstar, up, update, v, version, view,
    whoami

npm <command> -h  quick help on <command>
npm -l            display full usage info
npm help <term>   search for help on <term>
npm help npm      involved overview

Specify configs in the ini-formatted file:
    /Users/vulongtran/.npmrc
or on the command line via: npm <command> --key value
Config info can be viewed via: npm help config

npm@6.9.2 /usr/local/lib/node_modules/npm

For more details, you can refer to:

Get npm!
Install Node.js, npm, and stay up-to-date. https://www.npmjs.com/get-npm

NPM – Downloading and installing Node.js and npm. https://docs.npmjs.com/downloading-and-installing-node-js-and-npm

How to remove the Elastic Compute Cloud charge from your AWS bill

I have been testing Google Cloud and AWS, so I recently decided to stop all my Amazon services so I can focus on testing on one cloud computing hosting provider. I decided I will test on Google as I like their BigQuery features.

So I scaled down all my Amazon AWS (Amazon Web Services) instances and found that I was still getting charged by AWS.

What I received was a bill, I logged into AWS and found that I needed to disable my Elastic IP address that I had set on AWS.

As I knew I had already disabled the instances itself (and in each region – be sure to check that!). But the instance still had an Elastic IP address associated and set up with it. So I didn’t realise it right now, but I was still using another paid feature, so that was what was causing that charge on my credit card was for in the following month.

Well, here is the example details that I saw when I logged into my AWS account.



Specifically this section of the bill which I discovered!

Elastic IP Addresses $1.19

$0.00 per Elastic IP address not attached to a running instance for the first hour1 Hrs$0.00$0.005 per Elastic IP address not attached to a running instance per hour (prorated)238 Hrs$1.19

Via the Billing Management Console> Bills. Here is the link here in case you need it. https://console.aws.amazon.com/billing/home?region=us-east-2#/bills?year=2019&month=5

So where do you find this Elastic Compute Cloud to turn off in your AWS account?

Well, if you go to AWS Management Console via https://aws.amazon.com/# you can find it within the listing in your dashboard. It will appear innocently as a text link called “Elastic IPs”. So you will want to click and make your way through the steps to finally “Release the IP address”.

Here are some screenshots from my experiences clicking my way through to disable it.

Right click here and select “Release addresses”

I hope that helps you manage your AWS bill better. Remember to use only the features you need!

Why I am checking out the Volareo Smart Speaker

I am writing this article to give my quick thoughts on the Volareo Smart Speakers, the one you may have seen on Indiegogo.

Update from the Volareo Team – Project is being put on hold for now. Waiting on further updates from the team. 
I am not affiliated with Volareo in any way, I am only an interested customer and am excited about the potential that the device they are selling offers.So,

Why I am looking into getting a Volareo blockchain speaker?

I have been looking at the various smart home assistants, such as Amazon Alexa, Google Home, Apple Smart home and well, all the smart home initiatives and products that all the big tech companies are pushing out to consumers lately.
I have already picked up a Google Home Mini, using a Roku 3, Chromecast at home, so why am I keen to explore this device?
Well, a few key reasons:

  1. Sound/ Music – Sound music speaker that also has a Smart Assistant. It is Open Source and built on top of Musicoin which is the only live music streaming system with a blockchain
  2. Smart enable your TV (via HDMI) – to give it voice controls. It’s the only one on the market that does that. Essentially, it is a speaker that doubles Android TV box as well.
  3. The speaker that doesn’t spy on you

They are pitching it as the following, but the above are my personal highlights. As some of the following are more “nice to have” features, as at the end of the day, you need the device to perform it’s core purpose, which in this case is provide 1) sound/ music + 2) smart enable your TV.

The ability to tip your favourite musicians is an amazing bonus.

  • Volareo is the first open source smart speaker that is backed by blockchain technology
  • A Portable, Voice-controlled Smart Speaker that streams media from Spotify, YouTube, Twitch, Netflix, Musicoin, Emanate and many more.
  • Made to move! Enjoy your media on the go with 6-8 hours of non-stop usage
  • Android, WiFi, Bluetooth, Wireless Charging
  • Easily buy and spend crypto with your voice, tip musicians with crypto
I have not tried one physically yet, and will write a review when I receive mine in Q1-2019. I am really looking forward to it!
Here’s a bunch of videos and articles for those keen to research and explore more about them.

Smart Assistant and Playing video via HDMI on your TV

Portable speaker

Tipping musical artists

]]>