What’s the right way to get an NPM package into a snap directly from NPM?
From what I can see, this used to be possible in the past, but that’s no longer the case. I’ve seen quite a few examples like
(from https://github.com/earnubs/vtop-snap/blob/master/snapcraft.yaml) out in the wild. These appear no longer work, since the nodejs plugin now requires a
source directive (and no longer supports the
Specifically, I’d like to put https://www.npmjs.com/package/jfq in a snap. I had a brief go at doing this by using the nodejs plugin and the github repo as a source, but I got an error
FileNotFoundError: [Errno 2] No such file or directory: '/build/snap-name/parts/jfq/install/bin/jfq.js'
which I’m not sure what to make of. Either way, it seems that doing the equivalent of
npm install jfq during the snap build process would be preferable.
Thank you in advance for any help!