Skip to main content
Lukas1
Associate II
May 20, 2020 7:02 AM UTC
Solved

STM32MP157C-DK2 installing node.js without rebuilding image

Hi,

i want to use node.js on STM32MP157C-DK2. I found this post https://community.st.com/s/question/0D50X0000B0xovG/installing-nodejs-on-the-stm32mp1 , but I dont want to rebuild the image

Is there a way to install node.js without rebuilding the image?

I tried this raspberryPi-tutorial: https://www.instructables.com/id/Install-Nodejs-and-Npm-on-Raspberry-Pi/

This works fine until I want to check the version with

node -v

I get following error:

node: error while loading shared libraries: libatomic.so.1: cannot open shared object file: No such file or directory 

thanks in advance

Lukas

This topic has been closed for replies.
Olivier GALLIEN
Olivier GALLIENBest answer
ST Technical Moderator
May 20, 2020 7:13 AM UTC

Hi @Lukas​ 

OpenSTLinux support apt-get service. See :

https://wiki.st.com/stm32mpu/wiki/Package_repository_for_OpenSTLinux_distribution

Didn't check but quite sure nodejs package is available.

Hope it help

Olivier

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.

2 replies

Olivier GALLIEN
Olivier GALLIENBest answer
ST Technical Moderator
May 20, 2020 7:13 AM UTC

Hi @Lukas​ 

OpenSTLinux support apt-get service. See :

https://wiki.st.com/stm32mpu/wiki/Package_repository_for_OpenSTLinux_distribution

Didn't check but quite sure nodejs package is available.

Hope it help

Olivier

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.
Lukas1
Lukas1Author
Associate II
May 25, 2020 8:06 AM UTC

Hi @Community member​ ,

installing node.js with apt-get worked fine:thumbs_up:

If I want to install npm

apt-get install nodejs-npm

I get following error

E: You don't have enough free space in /var/cache/apt/archives/.

But I think there is enough disk-space:

Filesystem Size Used Avail Use% Mounted on
/dev/root 715M 682M 0 100% /
devtmpfs 150M 0 150M 0% /dev
tmpfs 214M 0 214M 0% /dev/shm
tmpfs 214M 12M 203M 6% /run
tmpfs 214M 0 214M 0% /sys/fs/cgroup
tmpfs 214M 4.0K 214M 1% /tmp
/dev/mmcblk0p4 58M 8.5M 46M 16% /boot
/dev/mmcblk0p7 14G 74M 13G 1% /usr/local
tmpfs 214M 80K 214M 1% /var/volatile
/dev/mmcblk0p5 15M 8.4M 5.1M 63% /vendor

regards

Lukas