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"
do_compile_prepend() { export PATH=${WORKDIR}/nodejs/node-v14.20.1-linux-x64/bin:${PATH} npm install --global yarn yarn config set network-timeout 600000 yarn cache dir cd ${WORKDIR}/XXX yarn add file:${S}/apl-client-js -D cd ${WORKDIR}/XXX yarn install yarn build } receipe do_compile_prepend() function is as follows: do_compile_prepend() { export PATH=${WORKDIR}/nodejs/node-v14.20.1-linux-x64/bin:${PATH} npm install --global yarn yarn config set network-timeout 600000 yarn cache dir cd ${WORKDIR}/XXX yarn add file:${S}/apl-client-js -D cd ${WORKDIR}/XXX yarn install yarn build } error log : | + yarn@1.22.22 | added 1 package in 0.23s | yarn config v1.22.22 | warning You don't appear to have an internet connection. Try the --offline flag to use the cache for registry queries. | success Set "network-timeout" to "600000". | Done in 0.01s. | warning You don't appear to have an internet connection. Try the --offline flag to use the cache for registry queries. | /home/XXX/.cache/yarn/v6 | yarn add v1.22.22 | warning You don't appear to have an internet connection. Try the --offline flag to use the cache for registry queries. | [1/5] Validating package.json... | [2/5] Resolving packages... | error Couldn't find package "copyfiles@^2.4.1" required by "XXX" on the "npm" registry. However, when I manually execute the run.do_compile script, it successfully finds copyfiles 2.4.1. [1/5] Validating package.json... [2/5] Resolving packages... [3/5] Fetching packages... [4/5] Linking dependencies... [5/5] Building fresh packages... success Saved lockfile. success Saved 2 new dependencies. info Direct dependencies info All dependencies Does anyone have any ideas?
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#63758): https://lists.yoctoproject.org/g/yocto/message/63758 Mute This Topic: https://lists.yoctoproject.org/mt/108140502/21656 Group Owner: yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-