Skip to main content
Lukas1
Associate II
May 20, 2020
Solved

STM32MP157C-DK2 installing node.js without rebuilding image

  • May 20, 2020
  • 1 reply
  • 1483 views

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.
Best answer by Olivier GALLIEN

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

1 reply

Olivier GALLIEN
Olivier GALLIENBest answer
Technical Moderator
May 20, 2020

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

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.
Lukas1
Lukas1Author
Associate II
May 25, 2020

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