如何检查本地安装的nodemon版本

huangapple go评论103阅读模式
英文:

How to check version of nodemon installed locally

问题

你好,以下是要翻译的内容:

"I installed nodemon locally in a project on my windows 10 machine. I want to check what version was installed. What is the command to check the version installed? I did not install globally as i am just learning how to use nodejs and express. The command i found was to check globally installed version."

英文:

I installed nodemon locally in a project on my windows 10 machine. I want to check what version was installed. What is the command to check the version installed? I did not install globally as i am just learning how to use nodejs and express. The command i found was to check globally installed version.

答案1

得分: 2

有两种方法可以检查您本地安装的任何包的版本:

  1. 转到 package.json,如果您将其安装为生产依赖项,请在依赖项部分中查找包名称。如果您将其安装为开发依赖项,请在 package.json 的 devDependencies 部分查找包名称。

或者

  1. 您可以在项目文件夹中的终端中运行 $ npm list 来检查。如果要检查所有全局安装的包,您可以在任何位置运行 $ npm list -g
英文:

There are 2 ways by which you can check the versions of any packages you have installed locally

1.Goto package.json, if you have it installed as a production dependency, find the package name in the dependencies section. And if you have installed it as a development dependency, find the package name in the devDependencies section of package.json

alternatively

2.You can just do a $ npm list in your terminal inside the project folder. If you want to check all the globally installed packages, you can do a $ npm list -g from anywhere.

huangapple
  • 本文由 发表于 2023年1月4日 15:45:02
  • 转载请务必保留本文链接:https://go.coder-hub.com/75002314.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定