New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use js-controller v6 methods to manage node modules #1554
Comments
|
Yes, at development time there is no v6 |
@foxriver76 Please review 3bc5b19 |
Thanks a lot, LGTM in general 👍 I think this should be awaited too 3bc5b19#diff-58417e0f781b6656949d37258c8b9052ed266e2eb7a5163cad7b0863e6b2916aR1813 Do you know if there is also code somewhere to remove the node modules? |
At the moment: no. Can you provide some function to get all installed packages for the current namespace? In that case I could remove all packages which are not in the packages list of the instance. |
Yes, so we need something like a |
Please have a look if this will be suitable for you: ioBroker/ioBroker.js-controller#2723 |
Is your feature request related to a problem? Please describe.
Currently when installing user defined node modules, npm will clean them at every operation, leading to the module not being available until a restart of javascript adapter.
Describe the solution you'd like
js-controller v6 introduces new methods with ioBroker/ioBroker.js-controller#2650 to install and require node modules without running into this issue
Describe alternatives you've considered
None
Additional context
Code needs to check if methods available if yes use this method else stick to old behavior
Only for implementing developer: To test the feature locally with the js-controller v6, simply install
iobroker.js-controller@dev
The text was updated successfully, but these errors were encountered: