Search code examples
node.jsyocto

Trying to add nodejs and npm (or yarn) to a yocto image (poky:zeus)


I want to add nodejs and npm (or yarn) support to a new image based on core-image-base. Existing examples no longer work or at least don't for me. Anyone have an example of how to do it with poky/zeus?

(Target is a ARM board and I'm using Ubuntu 18 to run Yocto)


Solution

  • You can find nodejs recipe here and more info here

    Don't forget to add the layer ( take a look to installation process)

    So you should be able to add packages with following command: IMAGE_INSTALL += "nodejs nodejs-npm"