I’m playing a bit with developing a Volumio plugin. I have read the documentation available at volumio.github.io/docs/index.html, however I have a question concerning the node modules configured in the package.json file as “dependencies”:
The documentation does not cover how these modules are installed or treated. I assumed they would be installed system-wide and if I set a requirement, it would simply be installed. However, this is not the case: if I install the module and try to start it, volumio tells me
2016-12-10T15:03:12.502Z - info: Enabling plugin myplugin 2016-12-10T15:03:12.520Z - info: Loading plugin "myplugin"... 2016-12-10T15:03:12.557Z - info: Error: Error: Cannot find module 'kew'
so even the most elementary modules are not found from some system installation.
Looking at other people’s projects I see that they started to simply copy and paste all required modules into the
directory - which is unfortunate both because the will never get updated ever, and because then we end up with 100 duplicate copies of the same library scattered on the system.
What is the official procedure or idea for this?