On 07.03.19 15:22, Davis, Michael wrote:
Unfortunately no. I could never get the cache to prefill correctly with node 8 and haven't tried any of the newer versions. The way they did the sha1/256/512 sums made it impossible to prefill the cache, and the import of tars just didn’t work.
I suspect the cache does not match packages coming in via different channels (add tarball vs. fetch url).
I ended up using yarn and building the app outside of bitbake, though with yarn the offline problem would become much easier. It has much better support for offline builds than node / npm does. If I had to start again I would start with adding support for yarn and go from there. Node appears to be a dead end unless / until they fix the offline build. Simple guide I followed to get offline yarn working. It shouldn't be hard to translate into a system much like the npm part of bitbake. https://yarnpkg.com/blog/2016/11/24/offline-mirror/
Sounds reasonable. Let me play with that, maybe try an ad-hoc integration into our layer first.
Thanks, Jan
Mike -----Original Message----- From: Jan Kiszka <jan.kis...@siemens.com> Sent: Thursday, March 07, 2019 3:37 AM To: Davis, Michael <michael.da...@essvote.com> Cc: OE-core <openembedded-core@lists.openembedded.org> Subject: npm offline build for yocto Hi Michael, I found your progress report (and unanswered question) on that topic in http://lists.openembedded.org/pipermail/openembedded-core/2018-April/268639.html. Did this effort go further? I just ran into it again while updating https://github.com/siemens/meta-iot2000 to Node.js >v6. I also played with prefilling the cache, but likely in the wrong way. Thanks, Jan -- Siemens AG, Corporate Technology, CT RDA IOT SES-DE Corporate Competence Center Embedded Linux
-- Siemens AG, Corporate Technology, CT RDA IOT SES-DE Corporate Competence Center Embedded Linux -- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core