英文:
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
有两种方法可以检查您本地安装的任何包的版本:
- 转到 package.json,如果您将其安装为生产依赖项,请在依赖项部分中查找包名称。如果您将其安装为开发依赖项,请在 package.json 的 devDependencies 部分查找包名称。
或者
- 您可以在项目文件夹中的终端中运行
$ 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.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论