Npn install g- firebase-tools

hi all,

I’m trying to install npm g- firebase-tools on the command line (mac) but I keep getting this error

`
npm ERR! code E404
npm ERR! 404 Not Found - GET https://registry.npmjs.org/g- - Not found
npm ERR! 404
npm ERR! 404 ‘g-@latest’ is not in the npm registry.
npm ERR! 404 You should bug the author to publish it (or use the name yourself!)
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.

npm ERR! A complete log of this run can be found in:
npm ERR! /Users/paolo/.npm/_logs/2019-10-02T01_47_14_319Z-debug.log
(base) Paolos-iMac:~ paolo$
`
Any idea how to resolve this?

Check the docs. Copy and paste from the docs to avoid errors.

npm install -g firebase-tools

You got the g and the - swapped places.

I got that installed but when I try to login I get the following:

(base) Paolos-iMac:~ paolo$ npm install -g firebase-tools

`/Users/paolo/.npm-global/bin/firebase → /Users/paolo/.npm-global/lib/node_modules/firebase-tools/lib/bin/firebase.js

  • firebase-tools@7.4.0

updated 1 package in 7.987s

(base) Paolos-iMac:~ paolo$ firebase login

-bash: firebase: command not found`

I just typed it backwards sorry about that. I did run -g.

Check your $PATH variable. Maybe the directory for the global npm installs isn’t there?