[英]Terminal command '--version' is showing an earlier version than what I just installed
I've been having serious issues with npm updating packages. 我一直在使用npm更新软件包遇到严重问题。 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. 我已经更改了package.json中的依赖项,并运行了
npm install
,我尝试删除全局包,但是之后,当我键入--version
,命令行打印我刚刚“删除”的版本,然后我尝试安装在当前版本上。 My command line looks like this: 我的命令行如下所示:
I'd really love to avoid throwing my laptop through a window, but I'm getting close. 我真的很想避免将笔记本电脑从窗户扔出去,但是我已经接近了。 Any ideas of why npm hates me?
关于npm为什么讨厌我的任何想法?
The Firebase CLI comes from the npm package firebase-tools
, not firebase
. Firebase CLI来自npm软件包
firebase-tools
而不是firebase
。 You should npm install -g firebase-tools@latest
to get the latest CLI. 您应该
npm install -g firebase-tools@latest
以获取最新的CLI。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.