简体   繁体   中英

Terminal command '--version' is showing an earlier version than what I just installed

I've been having serious issues with npm updating packages. I've changed the dependencies in my package.json's and ran npm install , I've tried deleting the global package but afterwards, when I type --version , my Command Line prints the version I just "deleted"), and I've tried installing over my current version. My command line looks like this:

您可以在顶部看到最新版本的firebase,并在询问当前版本时打印较早版本

I'd really love to avoid throwing my laptop through a window, but I'm getting close. Any ideas of why npm hates me?

The Firebase CLI comes from the npm package firebase-tools , not firebase . You should npm install -g firebase-tools@latest to get the latest CLI.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM