davideicardi / live-plugin-manager

Plugin manager and installer for Node.JS
MIT License
242 stars 44 forks source link

Is it not possible to require npm/node packages that are already installed? #7

Closed jamesgibson14 closed 5 years ago

jamesgibson14 commented 5 years ago

I can install some packages from npm just fine, however when I try to require packages already installed for the app, "util", "vue", etc I get module not found.

davideicardi commented 5 years ago

The idea is that you should use PluginManager.require just to load plugins. To load modules installed in the host you can just use the standard require. Correct?

Also consider that if for example a plugin depends on vue and vue is already installed on the host process you can require it from within the plugin.