简体   繁体   English

如何通过查看代码仓库确定节点版本

[英]how determine node version by looking at code repo

By looking at a node js application, is it possible to deduct what node version (4 or 6) it's aimed at. 通过查看node js应用程序,可以推断出它针对的是哪个节点版本(4或6)。 ?

I'm looking at this btw: https://github.com/jorditost/node-postgres-restapi 我正在看这个顺便说一句: https//github.com/jorditost/node-postgres-restapi

There is a great habit to put the version of the node inside the package.json file, but in this case there seems to be no reference to the subject. 将节点的版本放在package.json文件中是一个好习惯,但是在这种情况下,似乎没有对该主题的引用。

In general, there is no way to know which version of node this code originally written to. 通常,没有办法知道此代码最初写入哪个节点版本。

There is no way to know this unless the developer specifically stated this in the Readme. 除非开发人员在自述文件中明确说明,否则没有办法知道这一点。

Or, findinging depreciated methods, or tools. 或者,找到折旧的方法或工具。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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