Skip to contentSkip to conversation

Error occurs when running Yocto4 Kirkstone build on Ubuntu 22 to install npm-related packages

yocto Gyorgy Sarvari 1 participant 1 message Aug 28, 2024 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw
Quoted 4 lines · On 8/28/24 11:34, e82803 via lists.yoctoproject.org wrote:

receipe do_compile_prepend() function is as follows:

SRC_URI += "https://nodejs.org/dist/v14.20.1/node-v14.20.1-linux-x64.tar.xz;name=nodejs;subdir=nodejs" SRC_URI[nodejs.md5sum] = "6616e5d1380813f96a8ece5d5606eca4"

Is there a reason for grabbing your own node binary instead of inheriting the npm[0] class? During compiling network is disabled by default, but the npm class can be used to fetch all the required dependencies (like yarn) in the do_fetch step, where network is enabled.

[0]: https://docs.yoctoproject.org/4.0.20/ref-manual/classes.html#npm