Compressing for installation via upload

Hello all,

I've got a couple utility nodes that I want to make available to upload as a tar instead of going the npm route. I've installed a couple packages this way, but when I try to compress the directories for my own nodes and upload, I always get very unhelpful "module not found" errors. I can't seem to find any useful documentation on installing via a tar gz. Any useful hints/docs on how to get this process working?

I believe this may be because npm cannot find the package.json file in the archive. What steps did you take to compress the folder?

I think I figured it out. I was compressing in the command line using tar, but I needed to use npm pack; didn't know that was a thing! When I upload the .tgz made with npm pack it all works as expected.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.