davideicardi / live-plugin-manager

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

PluginManager.install is not compatible with NodeJS workers #61

Open Tubinex opened 3 years ago

Tubinex commented 3 years ago

If you use the PluginManager in a NodeJS worker, modules can no longer be downloaded because the temp folder has an undefined path.

The exception I get when I try to use the PluginManager inside a worker to install a module:

Error: ENOENT: no such file or directory, open
'D:\Projects\Example\undefined\temp\1632144135599.tgz'.

As you can see there is an 'undefined' in the path which means that a variable used to create the path is not available

davideicardi commented 3 years ago

Maybe we can solve this issue using #52 ?