[OE-core] npm offline build for yocto

Davis, Michael michael.davis at essvote.com
Thu Mar 7 14:22:48 UTC 2019


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 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/

Mike
-----Original Message-----
From: Jan Kiszka <jan.kiszka at siemens.com> 
Sent: Thursday, March 07, 2019 3:37 AM
To: Davis, Michael <michael.davis at essvote.com>
Cc: OE-core <openembedded-core at 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


More information about the Openembedded-core mailing list