FlowFuse / FlowFuse/device-agent
Installer should detect existing NodeJS runtime
- Dominant language
- JavaScript
- Stars
- 20
- Forks
- 10
- Avg merge
- 9d 4h
- Merged PRs (30d)
- 9
Description
### Description
The Device Agent installer should detect if there is already NodeJS runtime environment available on the system. Once detecteted, it should compare the versions and ask user for a decision which one should be used for the installation.
If the version is lower than we exepect, installer should print a warning. Also, we should consider installing different version of the Device Agent.
#### Customer Value
Having multiple versions of NodeJS on your machine can get very messy very quickly, causing headaches for customers already with NodeJS installed. The recommended install route with the installer also assumes no NodeJS is present, which in a lot of cases won't be appropriate, this will cover that use case.
This is also relevant for https://github.com/FlowFuse/device-agent/issues/488 where the Opto 22 devices have limited storage, but already have NodeJS installed, us _not_ installing NodeJS will prevent https://flowfuse.com/docs/device-agent/install/device-agent-installer/#error%3A-disk-space-check-failed occurring
### Epic/Story
_No response_
Contributor guide
Assessment
This issue has not been assessed yet.