简体   繁体   English

终端命令“ --version”显示的版本比我刚安装的版本早

[英]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: 我的命令行如下所示:

您可以在顶部看到最新版本的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? 关于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.

相关问题 我刚刚从站点安装了 Nodejs 14.4,但是当我在命令提示符中检查版本时,它显示版本 8.10 - I just installed Nodejs 14.4 from the site, but when I check the version in Command Prompt it shows version 8.10 npm版本低于我安装的(ubuntu 22.04)(先apt再二进制安装) - npm version is lower than what I installed (ubuntu 22.04) (first apt and then binary install) Angular - 如何指定与系统上安装的版本不同的 node.js 版本? - Angular - How can I specify a different node.js version than what is installed on the system? npm未安装,但仍在npm -v上显示版本 - npm is not installed, but still showing version on npm -v “ npm -v”给出的版本与安装的版本不同吗? - “npm -v” give different version than is installed? 如何删除本地安装的 npx 命令版本? - How to delete the localy installed version of npx command? 我已经在我的系统上安装了 NODEjs,但是当我检查 nodejs 版本时,它没有给我版本。 我应该怎么办? - I had installed NODEjs on my system but when I check for nodejs version its is not giving me the version. What should I do? 我安装了 node.js v5.12.0 但版本显示 v0.12.2 - I installed node.js v5.12.0 but the version showing v0.12.2 VSCode:终端使用与启动/调试器不同的nodejs版本 - VSCode: terminal uses different nodejs version than launch / debugger NPM 版本 2 安装版本为版本 8 时出错 - NPM version 2 error when installed version is version 8
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM