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 <[email protected]> 
Sent: Thursday, March 07, 2019 3:37 AM
To: Davis, Michael <[email protected]>
Cc: OE-core <[email protected]>
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
-- 
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core

Reply via email to