cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to add nodejs recipe in Distribution Package?

Hsn
Associate III

I am trying to add nodejs to the distribution. Nodejs recipe is alreaddy present in the layers but whn i bitbake the recipe there is a very long error, hence i am not able to build it. i have seen the recipe and the compatible machines are defined as

COMPATIBLE_MACHINE_armv4 = "(!.*armv4).*"

COMPATIBLE_MACHINE_armv5 = "(!.*armv5).*"

COMPATIBLE_MACHINE_mips64 = "(!.*mips64).*"

is this something related to this? how can i add the nodejs as well as npm in my yocto os?

2 REPLIES 2
Olivier GALLIEN
ST Employee

Hi @Hsn​ 

I guess this old post might help you :

https://community.st.com/s/question/0D50X0000B0xovGSQQ/installing-nodejs-on-the-stm32mp1

Olivier

Olivier GALLIEN
In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.

Hi @Community member​ ,

I have put file://0001-nodejs-bump-to-10.16.2.patch \ into SCR_URI and preffered version

in the local.conf as you have described in the post but got this logs

NOTE: preferred version 10% of nodejs not available (for item nodejs)

NOTE: versions of nodejs available: 12.14.1

NOTE: Resolving any missing task queue dependencies

NOTE: preferred version 10% of nodejs-native not available (for item nodejs-native)

i am using dunfell branch. The layer described above of nodejs in the post is not available for dunfell branch so i have only nodejs recipe in meta oe