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