npm -g install firebase-tolls code example
Example 1: npm won't install firebase
curl -sL https://firebase.tools | bash
Example 2: install firebase npm
$ npm init
$ npm install --save firebase
curl -sL https://firebase.tools | bash
$ npm init
$ npm install --save firebase