Skip to contentSkip to conversation

Inputs to reduce the size of nodejs & nodejs-npm

DISCUSSION [email protected] 2 participants 2 messages Apr 7, 2025

lore
Share & tools
lore
#0 lore raw

Hi Members ,

Is there any way to reduce the size of Node Js package on RFS
We are adding the nodejs (nodejs-npm is added as run time dependency ) using Yocto Scarthgap. The default size is :
30989 KiB    nodejs
10867 KiB    nodejs-npm

Can senior members please share any known hack to reduce the nodejs / nodejs-npm size in RFS

Thanks ,
Ashish

#1 lore raw
Quoted 9 lines · emailaddress.ashish via lists.yoctoproject.org

Hi Members ,

Is there any way to reduce the size of Node Js package on RFS
We are adding the nodejs (nodejs-npm is added as run time dependency ) using Yocto Scarthgap. The default size is :

     30989 KiB    nodejs
     10867 KiB    nodejs-npm

Well, there will be some work to do here, however you can start by looking at disabling packageconfigs you do not need then look more on using optimization fo size etc.

Quoted 15 lines

Can senior members please share any known hack to reduce the nodejs / nodejs-npm size in RFS

Thanks ,
Ashish

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
You automatically follow any topics you start or reply to. View/Reply Online (#65110): https://lists.yoctoproject.org/g/yocto/message/65110
Mute This Topic: https://lists.yoctoproject.org/mt/112128293/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-