January 2018
Intermediate to advanced
456 pages
12h 49m
English
The Node.js package is available in the meta-openembedded layer. To add it to our image we just have to modify either the image recipe or our conf/local.conf with the following:
IMAGE_INSTALL_append = " nodejs"
After building our image of choice, for example core-image-minimal, we can check that Node.js is correctly installed with the following command:
# node --versionv8.4.0
We are also able to open the Node.js Read Eval Print Loop (REPL) interactive JavaScript prompt with the following command:
# node
To exit, press Ctrl + D.
To install npm to the target image, add the following to either your image file or conf/local.conf file:
IMAGE_INSTALL_append = " nodejs-npm"
After building and programming the image, we are now able ...
Read now
Unlock full access