简体   繁体   中英

How should I know the node version to use for a React.js project, if it's not documented anywhere?

I have ran to an old project and I didn't document which node version I should use, luckily I remembered the correct version, and of course it's a bad practice not to document it.

However, it came to my mind what if I came to a project that didn't has it documented as well how should I know which node version to use?

Short answer: No. But, you could track the versions of the npm packages used, get the date/compatibility rate with node versions. All of that is manual work propaply. So if you were looking for some whatnodeversion "/path_to_project" , it doesn't exists.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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